コード例 #1
0
        public DeliveryContents Update(DeliveryContents entity)
        {
            var value = entity;

            unitOfWork.DeliveryContentsRepository.Update(value);
            return(entity);
        }
コード例 #2
0
        public DeliveryContents Create(DeliveryContents entity)
        {
            var valueToInsert = entity;

            unitOfWork.DeliveryContentsRepository.Add(valueToInsert);
            unitOfWork.SaveTablesChanges("dbo.Delivery_Contents");
            entity.Id = valueToInsert.Id;
            return(entity);
        }