Exemple #1
0
 public User GetByUserNameAndPassword(string userName, string password)
 {
     return(MyMapper.MapToSameType(_userDal.Get(p => p.UserName == userName && p.Password == password)));
 }
Exemple #2
0
 public List <Entities.ComplexTypes.UserRole> GetUserRoles(User user)
 {
     return(MyMapper.MapToSameType(_userDal.GetUserRoles(user)));
 }
Exemple #3
0
 public Product Update(Product product)
 {
     return(_productDal.Update(MyMapper.MapToSameType(product)));
 }