Debugging the last merge ...
This commit is contained in:
parent
b5267fe978
commit
721c0f9e7f
2 changed files with 8 additions and 8 deletions
|
|
@ -208,14 +208,14 @@ namespace Yavsc.ApiControllers
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
parts.Add(fo.OpenText().ReadToEnd());
|
bodies.Add(fo.OpenText().ReadToEnd());
|
||||||
|
|
||||||
|
|
||||||
fi.Delete();
|
fi.Delete();
|
||||||
fo.Delete();
|
fo.Delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
return Request.CreateResponse(HttpStatusCode.OK,string.Join("---\n",parts),new SimpleFormatter("text/plain"));
|
return Request.CreateResponse(HttpStatusCode.OK,string.Join("---\n",bodies),new SimpleFormatter("text/plain"));
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (System.Exception e)
|
catch (System.Exception e)
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ namespace Yavsc.Helpers
|
||||||
/// <returns>The script.</returns>
|
/// <returns>The script.</returns>
|
||||||
/// <param name="html">Html.</param>
|
/// <param name="html">Html.</param>
|
||||||
/// <param name="obj">Object.</param>
|
/// <param name="obj">Object.</param>
|
||||||
public static string JavaScript(this HtmlHelper html, object obj)
|
public static string JavaScript(this System.Web.Mvc.HtmlHelper html, object obj)
|
||||||
{
|
{
|
||||||
return JavaScript (obj);
|
return JavaScript (obj);
|
||||||
}
|
}
|
||||||
|
|
@ -190,7 +190,7 @@ namespace Yavsc.Helpers
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ViewData">View data.</param>
|
/// <param name="ViewData">View data.</param>
|
||||||
/// <param name="message">Message.</param>
|
/// <param name="message">Message.</param>
|
||||||
public static void Notice (ViewDataDictionary ViewData, string message) {
|
public static void Notice (System.Web.Mvc.ViewDataDictionary ViewData, string message) {
|
||||||
if (ViewData ["Notifications"] == null)
|
if (ViewData ["Notifications"] == null)
|
||||||
ViewData ["Notifications"] = new List<string> ();
|
ViewData ["Notifications"] = new List<string> ();
|
||||||
(ViewData ["Notifications"] as List<string>).Add (message.Replace("\'","\\\'"));
|
(ViewData ["Notifications"] as List<string>).Add (message.Replace("\'","\\\'"));
|
||||||
|
|
@ -202,16 +202,16 @@ namespace Yavsc.Helpers
|
||||||
/// <param name="html">Html.</param>
|
/// <param name="html">Html.</param>
|
||||||
/// <param name="path">Path.</param>
|
/// <param name="path">Path.</param>
|
||||||
/// <param name="patterns">Patterns.</param>
|
/// <param name="patterns">Patterns.</param>
|
||||||
public static IHtmlString FileList(this HtmlHelper html, string path, string [] patterns = null) {
|
public static IHtmlString FileList(this System.Web.Mvc.HtmlHelper html, string path, string [] patterns = null) {
|
||||||
StringWriter str = new StringWriter();
|
StringWriter str = new StringWriter();
|
||||||
HtmlTextWriter writter = new HtmlTextWriter (str);
|
HtmlTextWriter writter = new HtmlTextWriter (str);
|
||||||
DirectoryInfo di = new DirectoryInfo (HttpContext.Current.Server.MapPath(path));
|
DirectoryInfo di = new DirectoryInfo (HttpContext.Current.Server.MapPath(path));
|
||||||
if (!di.Exists)
|
if (!di.Exists)
|
||||||
return new MvcHtmlString ("");
|
return new System.Web.Mvc.MvcHtmlString ("");
|
||||||
var files = new List<FileInfo> ();
|
var files = new List<FileInfo> ();
|
||||||
if (patterns == null)
|
if (patterns == null)
|
||||||
patterns = new string[] { "*" };
|
patterns = new string[] { "*" };
|
||||||
var url = new UrlHelper(html.ViewContext.RequestContext,
|
var url = new System.Web.Mvc.UrlHelper(html.ViewContext.RequestContext,
|
||||||
html.RouteCollection);
|
html.RouteCollection);
|
||||||
|
|
||||||
foreach (string pattern in patterns)
|
foreach (string pattern in patterns)
|
||||||
|
|
@ -248,7 +248,7 @@ namespace Yavsc.Helpers
|
||||||
writter.RenderEndTag ();
|
writter.RenderEndTag ();
|
||||||
}
|
}
|
||||||
writter.RenderEndTag ();
|
writter.RenderEndTag ();
|
||||||
return new MvcHtmlString (str.ToString ());
|
return new System.Web.Mvc.MvcHtmlString (str.ToString ());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue