public ActionResult DeleteConfirmed(int id) { User Usere = _UsersServices.GetById(id); _UsersServices.Delete(Usere); return(RedirectToAction("Index")); }
public IActionResult Delete(int id) { var result = _userServices.Delete(id); if (result.ContainErrors) { return(BadRequest(result)); } return(Ok("Usuário excluído")); }
public async Task <Result <string> > Delete(string id) { return(await _services.Delete(id)); }