public JsonResult Add(MaritalStatus marital) { MTSHRDataLayer.MaritalStatus data_maritalstatus = new MTSHRDataLayer.MaritalStatus(); int result = data_maritalstatus.Create(marital.maritalstatus); return(Json(new { success = result }, JsonRequestBehavior.AllowGet)); }
public JsonResult Read() { MTSHRDataLayer.MaritalStatus data_maritalstatus = new MTSHRDataLayer.MaritalStatus(); return(Json(JsonConvert.SerializeObject(data_maritalstatus.Read()), JsonRequestBehavior.AllowGet)); }