コード例 #1
0
        public string UploadPhoto()   // Note: web.config requires maxRequestLength ="1048576" executionTimeout="3600"
        {
            GeneralHelpers.AddLogEvent("", "", "ValuesController", "UploadPhoto", "Start", "");
            var httpPostedFile          = HttpContext.Current.Request;
            HttpPostedFileBase filebase = new HttpPostedFileWrapper(HttpContext.Current.Request.Files[0]);
            string             fileName = ImageHelpers.UploadAndProcessAvatarImage(filebase);
            string             fullUrl  = ImageHelpers.GetAvatarFullUrl(fileName);

            GeneralHelpers.AddLogEvent("", "", "ValuesController", "UploadPhoto", "Completed", fullUrl);

            return(fullUrl);
        }
コード例 #2
0
 public string connectionCheck()
 {
     GeneralHelpers.AddLogEvent("", "", "ValuesController", "connectionCheck", "Start", "");
     return("OK");
 }
コード例 #3
0
 public string testPing()
 {
     GeneralHelpers.AddLogEvent("", "", "ValuesController", "testPing", "Start", "");
     return("Pong");
 }