public ActionResult DeleteUser(int id) { var u = _user.GetById(id); if (u != null) { _user.DeleteUser(id); return(Ok()); } else { return(NotFound()); } }
public string DeleteUser(int id) { return(iUserDb.DeleteUser(id)); }