public IResult UpdatePerson(Person person) { Person personInDB = GetPerson(person.PersonId); IResult result = BusinessRules.Run(CheckIfPersonExists(personInDB)); if (result != null) { return(result); } person.PersonCreatedDate = personInDB.PersonCreatedDate; person.PersonLastUpdateDate = DateTime.Now; _personDal.Update(person); return(new SuccessResult(Messages.PersonUpdateSuccess)); }
public IResult Update(Person person) { _personDal.Update(person); return(new SuccessResult(PersonMessage.PersonUpdate(person.FirstName))); }
public void Update(Person person) { _personDal.Update(person); }
public void Update(Person person) { ValidationTool.Validate(new PersonValidator(), person); _personDal.Update(person); }
//[FluentValidationAspect(typeof(PersonValidator))] public Person Update(Person person) { return(_personDal.Update(person)); }
public IResult Update(Person person) { _personDal.Update(person); return(new SuccessResult(Messages.PersonUpdated)); }
public IResult Update(Person person) { _personDal.Update(person); return(new Result(true, Messages.Updated)); }
public void Update(Person entity) { _personDal.Update(entity); }
public void Update(Person updateEntity) { _personDal.Update(updateEntity); }
public async Task Update(Person entity) { await _personDal.Update(entity); }