Esempio n. 1
0
        public IHttpActionResult GetAllCourses()
        {
            var res = _courseBs.CourseList().ToList();

            if (res != null)
            {
                apiResponse.Data      = res;
                apiResponse.IsSuccess = true;
                apiResponse.Message   = "Events List Found";
            }
            else
            {
                apiResponse.IsSuccess = false;
                apiResponse.Message   = "Not Events List Found";
            }

            return(Ok(apiResponse));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var course = _courseBs.CourseList();

            return(View(course));
        }