// GET: DrugUnits public ActionResult Index() { var drugUnits = _drugUnitsService.GetDrugUnits(); var drugUnitModels = _mapper.AutoMapper.Map <IEnumerable <DrugUnitDto>, IEnumerable <DrugUnitsViewModel> >(drugUnits); return(View(drugUnitModels)); }
public IEnumerable <DrugUnitsApiModel> Index() { var drugUnits = _drugUnitsService.GetDrugUnits(); var drugUnitModels = _mapper.AutoMapper.Map <IEnumerable <DrugUnitDto>, IEnumerable <DrugUnitsApiModel> >(drugUnits); return(drugUnitModels); }