/// <summary> /// Inserts an entity of <see cref=" MSBuildLogsExtended.DataSourceEntities.Solution"/>. /// </summary> /// <param name="input">input entity</param> /// <returns>a message with action result</returns> public static MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInSolution InsertEntity( MSBuildLogsExtended.DataSourceEntities.Solution input) { MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInSolution _Request =new MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInSolution(Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Create, Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Create.ToString(), Guid.NewGuid().ToString()); _Request.Critieria = new MSBuildLogsExtended.DataSourceEntities.SolutionCollection(); _Request.Critieria.Add(input); return InsertRequest(_Request); }
/// <summary> /// batch delete a collection of <see cref=" MSBuildLogsExtended.DataSourceEntities.Solution"/>. /// </summary> /// <param name="input">The input collection.</param> public static MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerResponseMessageBuiltInSolution BatchDelete(MSBuildLogsExtended.DataSourceEntities.SolutionCollection input) { MSBuildLogsExtended.WcfContracts.ISolutionWcfService _BusinessLogicLayerInstance = MSBuildLogsExtended.WcfContracts.WcfServiceResolver.ResolveWcfServiceSolution(); MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInSolution _Request = new MSBuildLogsExtended.CommonBLLEntities.BusinessLogicLayerRequestMessageBuiltInSolution(Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete, Framework.CommonBLLEntities.BusinessLogicLayerRequestTypes.Delete.ToString(), Guid.NewGuid().ToString()); _Request.Critieria = new MSBuildLogsExtended.DataSourceEntities.SolutionCollection(); _Request.Critieria.AddRange(input); return _BusinessLogicLayerInstance.BatchDelete(_Request); }