public DeliveryContents Update(DeliveryContents entity) { var value = entity; unitOfWork.DeliveryContentsRepository.Update(value); return(entity); }
public DeliveryContents Create(DeliveryContents entity) { var valueToInsert = entity; unitOfWork.DeliveryContentsRepository.Add(valueToInsert); unitOfWork.SaveTablesChanges("dbo.Delivery_Contents"); entity.Id = valueToInsert.Id; return(entity); }