public async Task <IActionResult> GetPermissions([FromQuery] GetPermissionsModel model) { #region Validation if (!ModelState.IsValid) { return(BadRequest(ErrorResponse.Create(ModelState))); } #endregion try { var permissions = await _service.GetPermissionsAsync(model.FileId); return(Ok(permissions)); } catch (Exception ex) { await _log.WriteErrorAsync("GoogleDriveController", nameof(GetPermissions), string.Empty, ex); return(StatusCode(500, ErrorResponse.Create(ex.Message))); } }