Example #1
0
 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();
 }
Example #2
0
 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();
 }
Example #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 });
 }
Example #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 });
 }