public IEnumerable <ModalIndex> GetModals() { var modals = _modalService.GetAllModals().ToList(); var modalsIndex = Mapper.Map <List <Modal>, List <ModalIndex> >(modals); return(modalsIndex); }
public IEnumerable <ModalIndex> GetModals() { var modals = _modalService.GetAllModals().ToList(); var modalsIndex = Mapper.Map <List <Modal>, List <ModalIndex> >(modals); return(modalsIndex); }