public virtual async Task <ActionResult> Update([FromBody] IEnumerable <NotificationSettingUpdateRequest> requests) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _service.UpdateEntitiesAsync(requests); if (!result) { return(StatusCode(500)); } return(NoContent()); }