Beispiel #1
0
        public static string Run()
        {
            TodaysDataRequest       request  = new TodaysDataRequest();
            TodaysDataResponse      response = new TodaysDataResponse();
            HelloWorldServiceClient client   = new HelloWorldServiceClient();

            response = client.GetTodaysData(request);
            return(response.Message);
        }
        public TodaysDataResponse GetTodaysData(TodaysDataRequest request)
        {
            TodaysDataResponse response = new TodaysDataResponse();
            TodaysData         objTD    = new TodaysData();

            try
            {
                objTD = Mapper.FromDataTransferObject(request.TodaysData);

                response.Message = todaysDataDao.GetTodaysData();
            }
            catch (Exception ex)
            {
                response.Message = ex.Message;

                response.Acknowledge = AcknowledgeType.Failure;
            }

            return(response);
        }