예제 #1
0
        public ResponsModel GetPayment()
        {
            ResponsModel responsModel = new ResponsModel();

            responsModel.Status       = "StripePaymenet";
            responsModel.ErrorMessage = "Not Available";
            return(responsModel);
        }
        public ResponsModel GetPayment()
        {
            ResponsModel responsModel = new ResponsModel();

            responsModel.Status       = "PaypalPaymentService";
            responsModel.ErrorMessage = "Not Available";
            return(responsModel);
        }
예제 #3
0
        public ResponsModel Greeting(Person p)
        {
            var res = new ResponsModel();

            if (DateTime.Now.Hour < 12)
            {
                res.Data    = $"Good Morning {p.FirstName} {p.LastName}";
                res.Message = "All Good";
            }

            res.Data    = $"Good Day {p.FirstName} {p.LastName}";
            res.Message = "Not So God Good";

            return(res);
        }