//[AuthorizeRoles(CustomUserRoles.Admin)] public async Task <IHttpActionResult> DeleteAsync([FromUri] TaskResource task) { var response = await task.DeleteAsync(this.Request); return(response.ToActionResult()); }