public bool CreateValue(DTOModelB dtoModelB)
        {
            // qui va fatto il mapping
            // qui vengono create le Entity
            // qui viene chiamato il repository

            throw new NotImplementedException();
        }
        public ActionResult Edit(Guid idB)
        {
            VMEditB vmEditB = new VMEditB();

            // mapping visual model to DTO
            DTOModelB dtoModelB = new DTOModelB();

            dtoModelB = ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureB.EditGet(dtoModelB);

            return(View(vmEditB));
        }
        public ActionResult Delete(Guid idB)
        {
            VMDeleteB vmDeleteB = new VMDeleteB();

            // mapping visual model to DTO
            DTOModelB dtoModelB = new DTOModelB();

            ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureB.DeleteGet(dtoModelB);

            return(View(vmDeleteB));
        }
        public ActionResult Delete(VMDeleteB vmDeleteB)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    // mapping visual model to DTO
                    DTOModelB dtoModelB = new DTOModelB();

                    ABaseController_WebStoreInstance.WebStore_CoreSupplierInstance.GetFeatureB.DeletePost(dtoModelB);
                }
                catch (Exception exception)
                {
                    throw new HttpException(500, exception.Message, exception);
                }
            }

            return(RedirectToAction("List"));
        }
예제 #5
0
        public bool CreatePost(DTOModelB dtoModelB)
        {
            _createStep1 = new CreateStep1B();
            _createStep2 = new CreateStep2B();
            _createStep3 = new CreateStep3B();

            // chain definition
            _createStep1.SetNextStep(_createStep2);
            _createStep2.SetNextStep(_createStep3);

            _createStep1.Execute(dtoModelB);

            if (dtoModelB.Id != 0)
            {
                return(true);
            }

            return(false);
        }
 public bool UpdateValue(DTOModelB dtoModelB)
 {
     throw new NotImplementedException();
 }
 public DTOModelB ReadValue(DTOModelB dtoModelB)
 {
     throw new NotImplementedException();
 }
예제 #8
0
 public CaseDTOModelB(DTOModelB dtoModelB)
 {
     this.dtoModelB = dtoModelB;
 }
예제 #9
0
 public DTOModelB DetailsGet(DTOModelB dtoModelB)
 {
     throw new System.NotImplementedException();
 }
예제 #10
0
 public bool EditPost(DTOModelB dtoModelB)
 {
     throw new System.NotImplementedException();
 }
예제 #11
0
        public DTOModelB DeleteGet(DTOModelB dtoModelB)
        {
            // chain definition

            return(dtoModelB);
        }