public BaseModel.OperationMessage EditService(SolutionServiceFactory info) { return(FunctionResultProxy.GetResult <OperationMessage>(delegate(OperationMessage r) { r.ActionResult = (SolutionServiceFactoryDal.Edit(info) > 0); return r; })); }
public BaseModel.OperationMessage EditSolution(BaseModel.SolutionConfiguration solution) { return(FunctionResultProxy.GetResult <OperationMessage>(delegate(OperationMessage r) { r.ActionResult = (SolutionConfigurationDal.Edit(solution) > 0); return r; })); }
public BaseModel.OperationResult <int> AddComponentConfigForSolution(Solution_Component_Relation info) { return(FunctionResultProxy.GetResult <OperationResult <int> >(delegate(OperationResult <int> r) { r.Data = SolutionComponentRelationDal.Create(info); r.ActionResult = (r.Data > 0); return r; })); }
public BaseModel.OperationResult <int> InsertService(SolutionServiceFactory info) { return(FunctionResultProxy.GetResult <OperationResult <int> >(delegate(OperationResult <int> r) { r.Data = SolutionServiceFactoryDal.Create(info); r.ActionResult = (r.Data > 0); return r; })); }
public BaseModel.OperationMessage EditAppUser(AppUser info) { return(FunctionResultProxy.GetResult <OperationMessage>(delegate(OperationMessage r) { r.ActionResult = (AppUserDal.Edit(info) > 0); return r; })); }
public BaseModel.OperationResult <int> CreateUser(AppUser info) { return(FunctionResultProxy.GetResult <OperationResult <int> >(delegate(OperationResult <int> r) { r.Data = AppUserDal.Create(info); r.ActionResult = (r.Data > 0); return r; })); }
public BaseModel.OperationResult <int> CreateComponentConfig(BaseModel.ComponentConfiguration componentConfig) { return(FunctionResultProxy.GetResult <OperationResult <int> >(delegate(OperationResult <int> r) { r.Data = ComponentConfigurationDal.Create(componentConfig); r.ActionResult = (r.Data > 0); return r; })); }
public BaseModel.OperationResult <int> CreateSolution(BaseModel.SolutionConfiguration solution) { return(FunctionResultProxy.GetResult <OperationResult <int> >(delegate(OperationResult <int> r) { r.Data = SolutionConfigurationDal.Create(solution); r.ActionResult = (r.Data > 0); return r; })); }
public BaseModel.OperationResult <BaseModel.SolutionConfiguration> GetSolution(Guid solutionId, int version) { return(FunctionResultProxy.GetResult <OperationResult <SolutionConfiguration> >(delegate(OperationResult <SolutionConfiguration> r) { var sc = SolutionConfigurationDal.Get(solutionId); r.Data = sc; r.ActionResult = (r.Data != null); return r; })); }
public BaseModel.OperationResult <List <SolutionServiceFactory> > GetServices(Guid SolutionID, int appUserID) { return(FunctionResultProxy.GetResult <OperationResult <List <SolutionServiceFactory> > >(delegate(OperationResult <List <SolutionServiceFactory> > r) { var sc = SolutionServiceFactoryDal.Get(SolutionID, appUserID); r.Data = sc; r.ActionResult = (r.Data != null); return r; })); }
public BaseModel.OperationResult <AppUser> GetAppUser(int AppUserID) { return(FunctionResultProxy.GetResult <OperationResult <AppUser> >(delegate(OperationResult <AppUser> r) { var sc = AppUserDal.Get(AppUserID); r.Data = sc; r.ActionResult = (r.Data != null); return r; })); }
public BaseModel.OperationResult <BaseModel.SolutionConfiguration> GetCompleteSolution(Guid solutionId) { return(FunctionResultProxy.GetResult <OperationResult <SolutionConfiguration> >(delegate(OperationResult <SolutionConfiguration> r) { var sc = SolutionConfigurationDal.Get(solutionId); if (sc != null) { sc.Components = ComponentConfigurationDal.GetList(solutionId); r.Data = sc; } r.ActionResult = (r.Data != null); return r; })); }
public OperationMessage CreateServices(Guid solutionID, int appUserID) { return(FunctionResultProxy.GetResult <OperationMessage>(delegate(OperationMessage r) { r.ActionResult = false; List <KeyVal <int, string> > compentIDs = SolutionServiceFactoryDal.GetCompentIDList(solutionID); if (compentIDs != null) { List <SolutionServiceFactory> serviceObjs = new List <SolutionServiceFactory>(); compentIDs.ForEach(c => { serviceObjs.Add(new SolutionServiceFactory() { AppUserID = appUserID, SolutionID = solutionID.ToString(), CompentID = c.Key, CompentAssemblyName = c.Val }); }); r.ActionResult = SolutionServiceFactoryDal.BatchInsert(serviceObjs); } return r; })); }