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