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