public HttpResponseMessage GetDateFormats() { GetDateFormatResponse response = userService.GetDateFormats(new GetDateFormatRequest() { }); return(Request.BuildResponse(response)); }
public JsonResult GetDateFormats() { GetDateFormatResponse response = userService.GetDateFormats(new GetDateFormatRequest() { }); return(Json(new { success = true, response = response.DateFormats }, JsonRequestBehavior.AllowGet)); }