Exemple #1
0
        public GoodsWriteOff Update(GoodsWriteOff entity)
        {
            var value = entity;

            unitOfWork.GoodsWriteOffRepository.Update(value);
            return(entity);
        }
Exemple #2
0
        public GoodsWriteOff Create(GoodsWriteOff entity)
        {
            var valueToInsert = entity;

            unitOfWork.GoodsWriteOffRepository.Add(valueToInsert);
            unitOfWork.SaveTablesChanges("dbo.Goods_Write_off");
            entity.Id = valueToInsert.Id;
            return(entity);
        }