예제 #1
0
 public JsonResult DeleteLaborantFromDB(Laborants laborant)
 {
     if (laborant.SelectedValue != null)
     {
         laborant.AddNewLaborantResult = bll.DeleteLaborantFromDB(laborant.SelectedValue);
     }
     return(Json(laborant, JsonRequestBehavior.AllowGet));
 }
예제 #2
0
 public JsonResult UseOrUnuseSelectedLaborant(Laborants laborant)
 {
     laborant.AddNewLaborantResult = bll.BllUseOrUnuseSelectedLaborant(laborant.SelectedValue, laborant.Used);
     return(Json(laborant, JsonRequestBehavior.AllowGet));
 }
예제 #3
0
 public JsonResult SaveNewLaborant(Laborants laborant)
 {
     laborant.AddNewLaborantResult = bll.SaveNewLaborant(laborant.LastName, laborant.FirstName, laborant.Used);
     return(Json(laborant, JsonRequestBehavior.AllowGet));
 }