本文整理汇总了C#中T4MVC_JsonResult类的典型用法代码示例。如果您正苦于以下问题:C# T4MVC_JsonResult类的具体用法?C# T4MVC_JsonResult怎么用?C# T4MVC_JsonResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
T4MVC_JsonResult类属于命名空间,在下文中一共展示了T4MVC_JsonResult类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddComment
public override System.Web.Mvc.JsonResult AddComment(long articleId, string textComment, long? conversationId) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.AddComment);
callInfo.RouteValueDictionary.Add("articleId", articleId);
callInfo.RouteValueDictionary.Add("textComment", textComment);
callInfo.RouteValueDictionary.Add("conversationId", conversationId);
return callInfo;
}
示例2: AutoComplete
public override System.Web.Mvc.JsonResult AutoComplete(string q, int limit, string timestamp) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.AutoComplete);
callInfo.RouteValueDictionary.Add("q", q);
callInfo.RouteValueDictionary.Add("limit", limit);
callInfo.RouteValueDictionary.Add("timestamp", timestamp);
return callInfo;
}
示例3: DynamicGridData
public override System.Web.Mvc.JsonResult DynamicGridData(int page, int rows, string search, string sidx, string sord) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.DynamicGridData);
callInfo.RouteValueDictionary.Add("page", page);
callInfo.RouteValueDictionary.Add("rows", rows);
callInfo.RouteValueDictionary.Add("search", search);
callInfo.RouteValueDictionary.Add("sidx", sidx);
callInfo.RouteValueDictionary.Add("sord", sord);
return callInfo;
}
示例4: UserStatusChange
public override System.Web.Mvc.JsonResult UserStatusChange(System.Guid id, bool isOnline) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.UserStatusChange);
callInfo.RouteValueDictionary.Add("id", id);
callInfo.RouteValueDictionary.Add("isOnline", isOnline);
return callInfo;
}
示例5: ActionOnAll
public override System.Web.Mvc.JsonResult ActionOnAll(bool everyOneOnline) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.ActionOnAll);
callInfo.RouteValueDictionary.Add("everyOneOnline", everyOneOnline);
return callInfo;
}
示例6: WithLastName
public override System.Web.Mvc.JsonResult WithLastName(string term, UCosmic.Domain.StringMatchStrategy matchStrategy) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.WithLastName);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "term", term);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "matchStrategy", matchStrategy);
return callInfo;
}
示例7: GetThings
public override System.Web.Mvc.JsonResult GetThings(int radius, double latitude, double longitude) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.GetThings);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "radius", radius);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "latitude", latitude);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "longitude", longitude);
return callInfo;
}
示例8: GetImportStatus
public override System.Web.Mvc.JsonResult GetImportStatus() {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.GetImportStatus);
return callInfo;
}
示例9: ByEmail
public override System.Web.Mvc.JsonResult ByEmail(string email) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.ByEmail);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "email", email);
return callInfo;
}
示例10: ValidateValue
public override System.Web.Mvc.JsonResult ValidateValue(UCosmic.Www.Mvc.Areas.Identity.Models.UpdateEmailValueForm model) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.ValidateValue);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "model", model);
return callInfo;
}
示例11: QuerySongs
public override System.Web.Mvc.JsonResult QuerySongs(long playlistId, string queryStr) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.QuerySongs);
callInfo.RouteValueDictionary.Add("playlistId", playlistId);
callInfo.RouteValueDictionary.Add("queryStr", queryStr);
return callInfo;
}
示例12: GetDetails
public override System.Web.Mvc.JsonResult GetDetails(long playlistId) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.GetDetails);
callInfo.RouteValueDictionary.Add("playlistId", playlistId);
return callInfo;
}
示例13: UpdateSong
public override System.Web.Mvc.JsonResult UpdateSong(long playlistId, long playlistSongRatingId, string songName, string artistName, string imageUrl) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.UpdateSong);
callInfo.RouteValueDictionary.Add("playlistId", playlistId);
callInfo.RouteValueDictionary.Add("playlistSongRatingId", playlistSongRatingId);
callInfo.RouteValueDictionary.Add("songName", songName);
callInfo.RouteValueDictionary.Add("artistName", artistName);
callInfo.RouteValueDictionary.Add("imageUrl", imageUrl);
return callInfo;
}
示例14: DetachSong
public override System.Web.Mvc.JsonResult DetachSong(Kululu.Entities.Playlist playlist, long playlistSongRatingId) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.DetachSong);
callInfo.RouteValueDictionary.Add("playlist", playlist);
callInfo.RouteValueDictionary.Add("playlistSongRatingId", playlistSongRatingId);
return callInfo;
}
示例15: DeleteSong
public override System.Web.Mvc.JsonResult DeleteSong(long playlistId, long playlistSongRatingId) {
var callInfo = new T4MVC_JsonResult(Area, Name, ActionNames.DeleteSong);
callInfo.RouteValueDictionary.Add("playlistId", playlistId);
callInfo.RouteValueDictionary.Add("playlistSongRatingId", playlistSongRatingId);
return callInfo;
}