forked from SoDOff-Project/sodoff
change response in `AddBanToViking
`
This commit is contained in:
parent
3ff5c729e7
commit
3f408bbae6
@ -13,7 +13,7 @@ public class ModerationService
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
public UserBan AddBanToViking(Viking viking, UserBanType userBanType, DateTime expirationDate = new DateTime())
|
||||
public string AddBanToViking(Viking viking, UserBanType userBanType, DateTime expirationDate = new DateTime())
|
||||
{
|
||||
// get UTC time stamp of function execution
|
||||
DateTime timestamp = DateTime.UtcNow;
|
||||
@ -30,8 +30,8 @@ public class ModerationService
|
||||
viking.UserBans.Add(userBan);
|
||||
ctx.SaveChanges();
|
||||
|
||||
// return ban
|
||||
return userBan;
|
||||
// return success message
|
||||
return "Success";
|
||||
}
|
||||
|
||||
public bool RemoveBanById(int id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user