public ActionResult Edit(int id) { var context = new Context(); if (!Request.IsAjaxRequest()) { var log = new SysLogModel(context: context); var html = RegistrationUtilities.Editor( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id, clearSessions: true); ViewBag.HtmlBody = html; log.Finish(context: context, responseSize: html.Length); return(View()); } else { var log = new SysLogModel(context: context); var json = RegistrationUtilities.EditorJson( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id); log.Finish(context: context, responseSize: json.Length); return(Content(json)); } }
public string Create(Context context) { var log = new SysLogModel(context: context); var json = RegistrationUtilities.Create( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: json.Length); return(json); }
public string New(Context context, long id = 0) { var log = new SysLogModel(context: context); var html = RegistrationUtilities.EditorNew( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: html.Length); return(html); }
/// <summary> /// Fixed: /// </summary> public string Approval(Context context, int id) { var log = new SysLogModel(context: context); var json = RegistrationUtilities.Approval(context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id); log.Finish(context: context, responseSize: json.Length); return(json); }
public string SelectSearchDropDown(Context context) { var log = new SysLogModel(context: context); var json = Libraries.Models.DropDowns.SelectSearchDropDown( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: json.Length); return(json); }
public string BulkDelete(long id) { var context = new Context(); var log = new SysLogModel(context: context); var json = RegistrationUtilities.BulkDelete( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: json.Length); return(json); }
public ActionResult New(long id = 0) { var context = new Context(); var log = new SysLogModel(context: context); var html = RegistrationUtilities.EditorNew( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); ViewBag.HtmlBody = html; log.Finish(context: context, responseSize: html.Length); return(View()); }
public string DeleteComment(int id) { var context = new Context(); var log = new SysLogModel(context: context); var json = RegistrationUtilities.Update( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id); log.Finish(context: context, responseSize: json.Length); return(json); }
public string Index(Context context) { if (!context.Ajax) { var log = new SysLogModel(context: context); var html = RegistrationUtilities.Index( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: html.Length); return(html); } else { var log = new SysLogModel(context: context); var json = RegistrationUtilities.IndexJson( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: json.Length); return(json); } }
public string Edit(Context context, int id) { if (!context.Ajax) { var log = new SysLogModel(context: context); var html = RegistrationUtilities.Editor( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id, clearSessions: true); log.Finish(context: context, responseSize: html.Length); return(html); } else { var log = new SysLogModel(context: context); var json = RegistrationUtilities.EditorJson( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context), registrationId: id); log.Finish(context: context, responseSize: json.Length); return(json); } }
public ActionResult Index() { var context = new Context(); if (!Request.IsAjaxRequest()) { var log = new SysLogModel(context: context); var html = RegistrationUtilities.Index( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); ViewBag.HtmlBody = html; log.Finish(context: context, responseSize: html.Length); return(View()); } else { var log = new SysLogModel(context: context); var json = RegistrationUtilities.IndexJson( context: context, ss: SiteSettingsUtilities.RegistrationsSiteSettings(context: context)); log.Finish(context: context, responseSize: json.Length); return(Content(json)); } }