public void Update(SubSession sessionSubtotal) { t_sessionsubtotal entity = _sqlRepository.Find(_ => _.SessionSubtotalId == sessionSubtotal.SessionSubtotalId).Single(); entity.UpdateEntity(sessionSubtotal); _sqlRepository.Commit(); }
public void Create(SubSession sessionSubtotal) { t_sessionsubtotal entity = new t_sessionsubtotal(); entity.UpdateEntity(sessionSubtotal); _sqlRepository.Insert(entity); sessionSubtotal.SessionSubtotalId = entity.SessionSubtotalId; }