예제 #1
0
        public IHttpActionResult GetList()
        {
            var list = _service.GetList();

            if (list == null)
            {
                InternalServerError(new Exception("Нет данных"));
            }
            return(Ok(list));
        }