Umbraco 8.18.4 Content SurfaceController Content S...
# help-with-umbraco
a
Hi, In Umbraco 8.18.4, we have a process that is sent from the frontend to the SurfaceController with BeginForm and returns to the current listing page after adding the form information to the content. This takes about 15-20 seconds when the record is created after a long time. But it registers the registration requests after the first registration in about 3 seconds. I've tried things like IIS settings and turning off form validations, but it didn't work. Has anyone experienced this problem before and what can be done? Thanks,
j
You should probably share some code details for anyone to be able to point anything out 🙂
a
-SURFACE CONTROLLER public class CallRecordingsController : SurfaceController { public CallRecordingsController(ContentService contentService) { _contentService = contentService; } [HttpPost] public ActionResult AddRecord(some values...) { if (ModelState.IsValid) { try { SaveContent(somevalues...); } catch (Exception ex) { TempData["ErrorMessage"] = "ERROR: " + ex.Message; } } return Redirect(Request.UrlReferrer.AbsolutePath); } private void SaveContent(somevalues) { var node = _contentService.Create(Guid.NewGuid().ToString(), parentId, "newType"); node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") node.SetValue("somekey","somevalues") _contentService.SaveAndPublish(node); } } - Razor @{Html.EnableClientValidation(false);} @using(Html.BeginForm("AddRecord","CallRecordings",FormMethod.Post)){ *--*---SOME FORM ELEMENTS--*---- }
any helps?
3 Views