public IHttpActionResult Delete(string id) { VerifyGuidType(id); _usersDomain.Delete(new Guid(id)); return(Ok()); }
public IActionResult Delete(string id) { if (!_usersDomain.Delete(id)) { return(RedirectToAction("Details", id)); } return(RedirectToAction("Index")); }
public bool Delete(string id) { return(_usersDomain.Delete(id)); }