Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public async Task <IHttpActionResult> PostAccount([FromBody] Account account) { var permissionTypeCreated = await _accountsService.AddAccountAsync(account); if (HttpContext.Current == null) { return(Created("", permissionTypeCreated)); } var create = HttpContext.Current.Request.Url + $"/{permissionTypeCreated.Id}"; var response = Created(create, permissionTypeCreated); return(response); }