public async Task <ActionResult <IEnumerable <FamiliarReadModel> > > GetAll() { IEnumerable <FamiliarReadModel> familiars = _mapper.Map <IEnumerable <FamiliarReadModel> >(await _ifam.GetAll()); return(Ok(familiars)); }
public async Task <ActionResult <IEnumerable <Familiar> > > GetAll() { IEnumerable <Familiar> familiars = await _ifam.GetAll(); return(Ok(familiars)); //(_iMapper.Map<IEnumerable<MasterCreateModel>>(masters) }