Exemple #1
0
        public IActionResult GetComplaintLog()
        {
            var complaintList = _service.FetchComplaint();

            if (complaintList == null)
            {
                return(BadRequest());
            }

            if (complaintList.Count == 0)
            {
                return(NoContent());
            }

            return(Ok(complaintList));
        }