Esempio n. 1
0
        public UpdateSubcontractProcessMasterResponseDto UpdateSubcontractProcessMaster(UpdateSubcontractProcessMasterRequestDto updateSubcontractProcessMasterRequestDto)
        {
            var cModel = new UpdateSubcontractProcessMasterCM
            {
                ProcessCode        = updateSubcontractProcessMasterRequestDto.ProcessCode,
                ProcessDescription = updateSubcontractProcessMasterRequestDto.ProcessDescription,
                UpdatedBy          = new Guid("783F190B-9B66-42AC-920B-E938732C1C01"), //Later needs to be remove,
                UpdatedDateTime    = System.DateTime.UtcNow,
            };

            var response = subcontractProcessMasterRepository.UpdateSubcontractProcessMaster(cModel);

            return(new UpdateSubcontractProcessMasterResponseDto());
        }
Esempio n. 2
0
        public UpdateSubcontractProcessMasterResponseDto UpdateSubcontractProcessMaster(UpdateSubcontractProcessMasterRequestDto updateSubcontractProcessMasterRequestDto)
        {
            UpdateSubcontractProcessMasterResponseDto updateSubcontractProcessMasterResponseDto;

            try
            {
                updateSubcontractProcessMasterResponseDto = bSubcontractProcessMasterProvider.UpdateSubcontractProcessMaster(updateSubcontractProcessMasterRequestDto);
                updateSubcontractProcessMasterResponseDto.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                updateSubcontractProcessMasterResponseDto = new UpdateSubcontractProcessMasterResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                updateSubcontractProcessMasterResponseDto = new UpdateSubcontractProcessMasterResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }
            return(updateSubcontractProcessMasterResponseDto);
        }