示例#1
0
        public IHttpActionResult Delete(string id)
        {
            VerifyGuidType(id);

            _usersDomain.Delete(new Guid(id));
            return(Ok());
        }
示例#2
0
        public IActionResult Delete(string id)
        {
            if (!_usersDomain.Delete(id))
            {
                return(RedirectToAction("Details", id));
            }

            return(RedirectToAction("Index"));
        }
示例#3
0
 public bool Delete(string id)
 {
     return(_usersDomain.Delete(id));
 }