public SPKViewModel GetSPKById(int spkId)
        {
            SPK result = _SPKRepository.GetById(spkId);

            SPKViewModel mappedResult = new SPKViewModel();

            return(Map(result, mappedResult));
        }
예제 #2
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();
        }