public HttpResponseMessage DeleteUser(HttpRequestMessage request, [FromBody] string username) { return(Execute(request, () => { _userService.DeleteUser(username); return request.CreateResponse(HttpStatusCode.OK); })); }
public void DeleteUser(int id) { applicationUserService.DeleteUser(id); }