예제 #1
0
파일: RolService.cs 프로젝트: sbast18/SACS
 public IList<String> SaveRolMenuAndActions(RolDTO obj)
 {
     String[] data = { "MenuAndActions", obj.MenuAndActions, "RecordID", obj.RolID };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_rol_menu_and_actions");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
예제 #2
0
파일: RolService.cs 프로젝트: sbast18/SACS
 public IList<String> SaveInfo(RolDTO obj)
 {
     String[] data = { "Name", obj.Name, "Description", obj.Description, "RecordID", obj.RolID };
     _repository.SetData(data);
     _repository.SetProcedure("sp_save_rol");
     _repository.IsPaginator(false);
     return _repository.Execute();
 }
예제 #3
0
 /// <summary>
 /// Actualiza la información de los menús y acciones del rol
 /// </summary>
 public ActionResult SaveRolMenuAndActions(String txtActions, String txtRecordId)
 {
     RolDTO objDTO = new RolDTO { MenuAndActions = txtActions, RolID = txtRecordId };
     IList<String> info = ContractService.SaveRolMenuAndActions(objDTO);
     return Json(new { d = info });
 }
예제 #4
0
 /// <summary>
 /// Actualiza la información del Rol
 /// </summary>
 public ActionResult SaveInfo(String txtName, String taDescription, String txtRecordId)
 {
     RolDTO objDTO = new RolDTO(txtName, taDescription, (txtRecordId.Equals("") ? "0" : txtRecordId));
     IList<String> info = ContractService.SaveInfo(objDTO);
     return Json(new { d = info });
 }