public FuneralViewModel Create(FuneralPostModel model) { var funeralModel = _mapper.Map <FuneralModel>(model); var createdModel = _funeralService.Create(funeralModel); return(_mapper.Map <FuneralViewModel>(createdModel)); }
public void Create(FuneralViewModel model) { var funeral = _mapper.Map <FuneralModel>(model); _funeralService.Create(funeral); }