Exemple #1
0
        public T Put <V>(T obj) where V : AbstractValidator <T>
        {
            Validate(obj, Activator.CreateInstance <V>());

            repository.Update(obj);
            return(obj);
        }
Exemple #2
0
 public void Update(User User)
 {
     try
     {
         using (_UserBaseRepository._context = _DbContext)
         {
             _UserBaseRepository.Update(User);
             _UserBaseRepository._context.SaveChanges();
         }
     }
     catch (Exception error)
     {
         throw error;
     }
 }