public JsonResult Add(Nationality nation) { MTSHRDataLayer.Nationality data_nationality = new MTSHRDataLayer.Nationality(); int result = data_nationality.Create(nation.nationality); return(Json(new { success = result }, JsonRequestBehavior.AllowGet)); }
public JsonResult Read() { MTSHRDataLayer.Nationality data_nationality = new MTSHRDataLayer.Nationality(); return(Json(JsonConvert.SerializeObject(data_nationality.Read()), JsonRequestBehavior.AllowGet)); }