Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public JsonResult Read()
 {
     MTSHRDataLayer.Nationality data_nationality = new MTSHRDataLayer.Nationality();
     return(Json(JsonConvert.SerializeObject(data_nationality.Read()), JsonRequestBehavior.AllowGet));
 }