public JsonResult DeleteMonths(int ID) { MonthController obj = new MonthController(); var response = obj.Delete(ID); return(Json(response, JsonRequestBehavior.AllowGet)); }
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)); }
public JsonResult UpdateMonths(int ID, Month Month) { MonthController obj = new MonthController(); var response = obj.Put(ID, Month); return(Json(response, JsonRequestBehavior.AllowGet)); }
public JsonResult GetMonths() { MonthController obj = new MonthController(); List <Month> objMonth = obj.GetMonths(); return(Json(objMonth, JsonRequestBehavior.AllowGet)); }