Ejemplo n.º 1
0
        public JsonResult Add(AddEditLocation Loc)
        {
            MTSHRDataLayer.Location data_location = new MTSHRDataLayer.Location();
            int result = data_location.Create(Loc.LocationName);

            return(Json(new { success = result }, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 2
0
 public JsonResult Read()
 {
     MTSHRDataLayer.Location location = new MTSHRDataLayer.Location();
     return(Json(JsonConvert.SerializeObject(location.Read()), JsonRequestBehavior.AllowGet));
 }