/// <summary> /// To Get All Users List /// </summary> /// <returns></returns> public async Task <List <UserEntity> > GetAllUser() { var AllUser = await _repository.GetAllAsync(); if (AllUser.Count() > 0) { return(_mapperFactory.GetList <User, UserEntity>(AllUser)); } else { return(null); } }
/// <summary> /// Purpose : Get all Fuel Capacity. /// </summary> /// <returns></returns> public async Task <List <FuelMasterEntity> > GetAllFuel() { var AllFuel = await _repository.GetAllAsync(); if (AllFuel.Count() > 0) { return(_mapperFactory.GetList <FuelMaster, FuelMasterEntity>(AllFuel)); } else { return(null); } }
/// <summary> /// Purpose : Get all Application Text /// </summary> /// <returns></returns> public async Task <List <ApplicationTextEntity> > GetAllApplicationText() { var AllApplicationText = await _repository.GetAllAsync(); if (AllApplicationText.Count() > 0) { return(_mapperFactory.GetList <ApplicationText, ApplicationTextEntity>(AllApplicationText)); } else { return(null); } }