public IActionResult Delete(Guid id) { if (!_userResource.Exists(id)) { return(NotFound()); } _userResource.Delete(id); return(NoContent()); }
public IHttpActionResult Delete(int userId) { resource.Delete(userId); return(Request.CreateNoContentResponse()); }