public void Update(FuneralModel entity, params Expression <Func <FuneralModel, object> >[] updatedProperties) { var funeral = _mapper.Map <Funeral>(updatedProperties); _funeralRepository.Update(funeral); }
public void Update(FuneralModel model, int id) { var funeral = _mapper.Map <Funeral>(model); _funeralRepository.Update(funeral, id, x => x.Id == id); }