public IActionResult Get() { try { return(Ok(_complaintService.Get())); } catch (Exception ex) { _logger.LogError("error occrured: {0}", ex.ToString()); return(BadRequest(new { message = "Server Exception" })); } }