Пример #1
0
        public void PrintSPK(SPKViewModel spk, int userId)
        {
            DateTime serverTime = DateTime.Now;
            SPK      entity     = _SPKRepository.GetById(spk.Id);

            entity.StatusPrintId = (int)DbConstant.SPKPrintStatus.Printed;
            entity.ModifyDate    = serverTime;
            entity.ModifyUserId  = userId;

            _SPKRepository.Update(entity);

            _unitOfWork.SaveChanges();
        }