Exemple #1
0
        public HttpResponseMessage GetDateFormats()
        {
            GetDateFormatResponse response = userService.GetDateFormats(new GetDateFormatRequest()
            {
            });

            return(Request.BuildResponse(response));
        }
Exemple #2
0
        public JsonResult GetDateFormats()
        {
            GetDateFormatResponse response = userService.GetDateFormats(new GetDateFormatRequest()
            {
            });

            return(Json(new
            {
                success = true,
                response = response.DateFormats
            }, JsonRequestBehavior.AllowGet));
        }