public JsonResult AddRepairType(string TypeName, string Notes)
        {
            Ql.AddRepairType(TypeName, Notes);
            bool result = true;

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public ActionResult AddRepairType(FormCollection colection, RepairType RepairType)
        {
            String Notes    = colection["Notes"];
            String TypeName = colection["TypeName"];

            Ql.AddRepairType(TypeName, Notes);
            return(RedirectToAction("RepairType", "RepairType"));
        }