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