Beispiel #1
0
        public IActionResult GetAll()
        {
            var result = _headingService.GetAll();

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
Beispiel #2
0
        public IActionResult getAll()
        {
            var result = _headingService.GetAll();

            if (result.Success)
            {
                return(View(result.Data));
            }
            return(BadRequest(result.Message));
        }