public JsonResult Index()
        {
            var apiResult = TryExecute(() => _leaveTimePeriodRepository.GetAll(), "Leave Periods Fetched sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var leavePeriods = _leaveTimePeriodRepository.GetAll();

            return(View(leavePeriods));
        }