public T Put <V>(T obj) where V : AbstractValidator <T> { Validate(obj, Activator.CreateInstance <V>()); repository.Update(obj); return(obj); }
public void Update(User User) { try { using (_UserBaseRepository._context = _DbContext) { _UserBaseRepository.Update(User); _UserBaseRepository._context.SaveChanges(); } } catch (Exception error) { throw error; } }