public async Task <IHttpActionResult> DeleteUser(string id) { if (string.IsNullOrEmpty(id)) { return(BadRequest()); } var canNotBeDeleted = await _kudosService.HasPendingKudosAsync(id); if (canNotBeDeleted) { return(Content(HttpStatusCode.MethodNotAllowed, "Employee has pending kudos")); } await _userService.DeleteAsync(id, GetUserAndOrganization()); return(Ok()); }