public async Task <ResponceModel> GetAll([FromQuery(Name = "text")] string text, [FromQuery(Name = "page")] int page = 1, [FromQuery(Name = "offset")] int offset = 20) { try { var sectors = await sectorService.GetAll(text, page, offset); return(new ResponceModel(200, "OK", sectors, null)); } catch (Exception ex) { await _logService.Add(new SystemLog() { Content = ex.Message, CreateDate = DateTime.Now, UserId = 0, EntityName = sectorService.GetType().Name }); return(new ResponceModel(500, "ERROR", null, new string[] { "Veriler getitilirken sorun oluştu." })); } }