Exemple #1
0
    public async Task <ActionResult <PaginatedResponseModel <AppAuditLogModel> > > GetAll(
        [FromQuery] AppAuditLogSearchModel model
        )
    {
        try {
            var result = await repository.SearchAsync(model);

            return(result);
        }
        catch (Exception ex) {
            logger.LogError(ex, $"Can not search app_audit_logs with {model.ToJson()}.");
            return(this.InternalServerError(ex));
        }
    }