public void Add(Person person) { CheckIfMemberExists(person); CheckIfUserValidFromKps(person); _personDal.Add(person); }
public IResult AddPerson(Person person) { IResult result = BusinessRules.Run( CheckIfPersonFullNameExists(person.PersonFirstName, person.PersonLastName)); if (result != null) { return(result); } _personDal.Add(person); return(new SuccessResult(Messages.PersonAddedSuccess)); }
public IResult Add(Person person) { _personDal.Add(person); return(new SuccessResult(PersonMessage.PersonAdd(person.FirstName))); }
public void Add(Person person) { _personDal.Add(person); }
public void Add(Person person) { ValidationTool.Validate(new PersonValidator(), person); _personDal.Add(person); }
//[FluentValidationAspect(typeof(PersonValidator))] //[CacheRemoveAspect(typeof(MemoryCacheManager))] public Person Add(Person person) { return(_personDal.Add(person)); }
public IResult Add(Person person) { _personDal.Add(person); return(new SuccessResult(Messages.PersonAdded)); }
public bool Add(PersonModel person) { return(_personDal.Add(person)); }
public IResult Add(Person person) { _personDal.Add(person); return(new Result(true, Messages.Added)); }
public void Add(Person entity) { _personDal.Add(entity); }