public HttpResponseMessage DoImport() { try { string LocalResourceFile = CommonController.ResolveUrl("App_LocalResources/MainControl", true); string Result = CommonController.DoImport(this.PortalSettings, LocalResourceFile, this.UserInfo); return(Request.CreateResponse(HttpStatusCode.OK, Result)); } catch (System.Exception ex) { DotNetNuke.Services.Exceptions.Exceptions.LogException(ex); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }