duheng
2024-12-09 477be839d94e42de8bef6c4fa55496253d4ceb7a
Application/HStation.Application.Xhs.Core/01-project/XhsProject_ExtensionsController.cs
@@ -102,7 +102,7 @@
            var project = input.Adapt<AddXhsProjectInput, Model.XhsProject>();
            project.SortCode = _service.GetMaxSortCode(0) + 1;
            var siteList = input.SiteList?.Select(x => x.Adapt<AddXhsProjectSiteExtensionsInput, Model.XhsProjectSite>()).ToList();
            var siteList = input.SiteList?.Select(x => x.Adapt<AddXhsProjectSiteInput, Model.XhsProjectSite>()).ToList();
            var id = _service.InsertEx(project, siteList);
            return id;
        }
@@ -140,8 +140,6 @@
            return bol;
        }
        #endregion
        #region Delete
@@ -153,7 +151,7 @@
        [HttpDelete]
        public bool DeleteByID([FromQuery][Required] IDInput input)
        {
            var bol = _service.DeleteExByID(input.ID, out string Msg);
            var bol = _service.DeleteByID(input.ID, out string Msg);
            if (!bol)
            {
                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D999, Msg);