コード例 #1
0
        public ActionResult RefreshReview(int id)
        {
            ImportService importService = new ImportService(User.Identity.Name);
            BulkUploadViewModel response = importService.PrepareImport(id);

            IEnumerable<TenantViewModel> listOfTenants = GetTenants();
            response.BatchId = id.ToString();
            response.Tenants = listOfTenants;

            Utilities.JsonCamelCaseResult result =
                new Utilities.JsonCamelCaseResult(response, JsonRequestBehavior.AllowGet);
            return result;
        }
コード例 #2
0
        public ActionResult Upload(HttpPostedFileBase FileUpload)
        {
            ImportService importService = new ImportService(User.Identity.Name);
            BulkUploadViewModel response = importService.PrepareImport(FileUpload);
            string batchId = importService.BatchId;

            IEnumerable<TenantViewModel> listOfTenants = GetTenants();
            response.BatchId = batchId;
            response.Tenants = listOfTenants;

            Utilities.JsonCamelCaseResult result =
                new Utilities.JsonCamelCaseResult(response, JsonRequestBehavior.AllowGet);
            return result;
        }