public ActionResult Create(DoorGroupsMaster groupsMaster) { if (ModelState.IsValid) { DoorGroupsMaster doorGroups = _doorGroupsMasterService.AddDoorGroupsMaster(groupsMaster); return(RedirectToAction("Reader", "DoorGroup", new { DoorGroupID = doorGroups.Kapi_Grup_No })); } return(View(groupsMaster)); }
public ActionResult Edit(DoorGroupsMaster doorGroupsMaster) { if (ModelState.IsValid) { _doorGroupsMasterService.UpdateDoorGroupsMaster(doorGroupsMaster); return(RedirectToAction("Index", "DoorGroup")); } return(View(doorGroupsMaster)); }
public ActionResult Edit(int?ID) { //if (permissionUser.SysAdmin == false) // throw new Exception("Yetkisiz Erişim!"); DoorGroupsMaster model = new DoorGroupsMaster(); if (ID != null) { model = _doorGroupsMasterService.GetByKapiGrupNo((int)ID); } return(View(model)); }
public DoorGroupsMaster UpdateDoorGroupsMaster(DoorGroupsMaster doorGroupsMaster) { return(_doorGroupsMasterDal.Update(doorGroupsMaster)); }
public void DeletDoorGroupsMaster(DoorGroupsMaster doorGroupsMaster) { _doorGroupsMasterDal.Delete(doorGroupsMaster); }
public DoorGroupsMaster AddDoorGroupsMaster(DoorGroupsMaster doorGroupsMaster) { return(_doorGroupsMasterDal.Add(doorGroupsMaster)); }