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(); }
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(); }
/// <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 }); }
/// <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 }); }