Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            User Usere = _UsersServices.GetById(id);

            _UsersServices.Delete(Usere);
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        public IActionResult Delete(int id)
        {
            var result = _userServices.Delete(id);

            if (result.ContainErrors)
            {
                return(BadRequest(result));
            }

            return(Ok("Usuário excluído"));
        }
Exemple #3
0
 public async Task <Result <string> > Delete(string id)
 {
     return(await _services.Delete(id));
 }