public IList<UsersModel> getUserList() { Mapper.CreateMap<F98021, UsersModel>(); objF98021 = new F98021Repository(); IList<UsersModel> objResult = new List<UsersModel>(); IList<F98021> objEntity = objF98021.GetAll().ToList(); objResult = Mapper.Map(objEntity, objResult); return objResult; }
public LoginModel getUserInfo(string UserID) { Mapper.CreateMap<F98021, LoginModel>(); objF98021 = new F98021Repository(); LoginModel objResult = new LoginModel(); if (objF98021.GetAll(u => u.UserID.Equals(UserID)).Count() > 0) { F98021 objEntity = objF98021.GetSingle(u => u.UserID.Equals(UserID)); objResult = Mapper.Map(objEntity, objResult); } return objResult; }