Exemple #1
0
        public IActionResult Department()
        {
            var result = _chartRepository.Department();

            if (result != null)
            {
                return(Ok(new { status = HttpStatusCode.OK, result, message = "Data Found" }));
            }
            else
            {
                return(NotFound(new { status = HttpStatusCode.NotFound, message = "Not Found", result = "" }));
            }
        }