Esempio n. 1
0
        public JsonResult DeleteMonths(int ID)
        {
            MonthController obj      = new MonthController();
            var             response = obj.Delete(ID);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public JsonResult AddMonth(Month Month)
        {
            MonthController obj      = new MonthController();
            var             response = obj.Post(Month);

            return(Json(((Month)(((System.Net.Http.ObjectContent)(response.Content)).Value)).Id, JsonRequestBehavior.AllowGet));
        }
Esempio n. 3
0
        public JsonResult UpdateMonths(int ID, Month Month)
        {
            MonthController obj      = new MonthController();
            var             response = obj.Put(ID, Month);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }
Esempio n. 4
0
        public JsonResult GetMonths()
        {
            MonthController obj      = new MonthController();
            List <Month>    objMonth = obj.GetMonths();

            return(Json(objMonth, JsonRequestBehavior.AllowGet));
        }