public async Task <ActionResult> BanEmail([FromBody] SingleString val)
        {
            await _banService.BanEmail(val.String);

            return(NoContent());
        }
 public RedirectToRouteResult BanEmail(string email)
 {
     _banService.BanEmail(email);
     return(RedirectToAction("Ban"));
 }
Ejemplo n.º 3
0
 public ActionResult BanEmail([FromBody] SingleString val)
 {
     _banService.BanEmail(val.String);
     return(NoContent());
 }