public void Update(NameOrDescription name, long?updatedByUser) { Name = name; Audit.Update(updatedByUser); Validate(); }
public void Update(NameOrDescription name, DateTime validateDate, long?updatedByUser) { Name = name; ValidateDate = validateDate; Audit.Update(updatedByUser); AddNotifications(new Flunt.Validations.Contract().Requires() .IsNotNull(validateDate, "validateDate", "Data requerida") .IsLowerOrEqualsThan(validateDate, DateTime.Now, "ValidateDate", "Data da validade precisa ser maior que a data atua"), name); }
public void Update(NameOrDescription name, string login, string password, string confirmPassword, long nivel, long active, decimal percentM, decimal percentB, long?updatedByUser) { Name = name; Login = login; Password = password; _confirmPassword = confirmPassword; Active = (EActiveDeactive)active; Nivel = nivel; PercentM = percentM; PercentB = percentB; Audit.Update(updatedByUser); Validate(); }
public void Update(long callTypeId, long callGroupId, long sectorId, long agreementId, long customerId, long employeeId, EPriority priority, NameOrDescription title, string details, long updatedByUserId) { CallTypeId = callTypeId; CallGroupId = callGroupId; SectorId = sectorId; ContractId = agreementId; CustomerId = customerId; EmployeeId = employeeId; Priority = priority; Details = details; Title = title; Audit.Update(updatedByUserId); Validate(); }