Example #1
0
        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));
        }
Example #2
0
 public IResult Update(Person person)
 {
     _personDal.Update(person);
     return(new SuccessResult(PersonMessage.PersonUpdate(person.FirstName)));
 }
Example #3
0
 public void Update(Person person)
 {
     _personDal.Update(person);
 }
Example #4
0
 public void Update(Person person)
 {
     ValidationTool.Validate(new PersonValidator(), person);
     _personDal.Update(person);
 }
Example #5
0
 //[FluentValidationAspect(typeof(PersonValidator))]
 public Person Update(Person person)
 {
     return(_personDal.Update(person));
 }
Example #6
0
 public IResult Update(Person person)
 {
     _personDal.Update(person);
     return(new SuccessResult(Messages.PersonUpdated));
 }
Example #7
0
 public IResult Update(Person person)
 {
     _personDal.Update(person);
     return(new Result(true, Messages.Updated));
 }
Example #8
0
 public void Update(Person entity)
 {
     _personDal.Update(entity);
 }
 public void Update(Person updateEntity)
 {
     _personDal.Update(updateEntity);
 }
Example #10
0
 public async Task Update(Person entity)
 {
     await _personDal.Update(entity);
 }