public GetWorkOrderClientSerialNoResponseDto GetWorkOrderClientSerialNo(string shortCode)
        {
            GetWorkOrderClientSerialNoResponseDto response = new GetWorkOrderClientSerialNoResponseDto();

            try
            {
                response = rWorkOrderProvider.GetWorkOrderClientSerialNo(shortCode);
                response.ServiceResponseStatus = 1;
            }
            catch (SSException applicationException)
            {
                response = new GetWorkOrderClientSerialNoResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorMessage          = applicationException.Message,
                    ErrorCode             = applicationException.ExceptionCode
                };
            }
            catch (Exception exception)
            {
                response = new GetWorkOrderClientSerialNoResponseDto
                {
                    ServiceResponseStatus = 0,
                    ErrorCode             = ExceptionAttributes.ExceptionCodes.InternalServerError,
                    ErrorMessage          = exception.Message
                };
            }

            return(response);
        }
Beispiel #2
0
        public GetWorkOrderClientSerialNoResponseDto GetWorkOrderClientSerialNo(string shortCode)
        {
            var response = new GetWorkOrderClientSerialNoResponseDto();

            var model = workOrderTypeRepository.GetWorkOrderClientSerialNo(shortCode);

            return(response);
        }