示例#1
0
        public IActionResult Delete(Guid id)
        {
            if (!_userResource.Exists(id))
            {
                return(NotFound());
            }

            _userResource.Delete(id);

            return(NoContent());
        }
示例#2
0
 public IHttpActionResult Delete(int userId)
 {
     resource.Delete(userId);
     return(Request.CreateNoContentResponse());
 }