Ejemplo n.º 1
0
        // GET: ClientAccMapper/Create
        public ActionResult Create(Guid clientId)
        {
            ClientDAL objdal = new ClientDAL();

            ClientAccMapper objMapper = new ClientAccMapper();
            Client          objClient = objdal.GetSingle(clientId);

            objMapper.ClientName = objClient.ClientName;
            objMapper.ClientID   = objClient.ClientID;

            return(View(objMapper));
        }
Ejemplo n.º 2
0
        public ActionResult Edit_Get(Guid clientid)
        {
            System.Threading.Thread.CurrentThread.CurrentCulture   = new CultureInfo("en-GB");
            System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-GB");
            ClientDAL        objdal           = new ClientDAL();
            Client           entobj           = objdal.GetSingle(clientid);
            LeadGeneratorDAL objdallg         = new LeadGeneratorDAL();
            ClientAccMapper  listAccontNumber = new ClientAccMapper();
            var model = new Client();

            model                   = entobj;
            model.LGlist            = objdallg.GetAll().ToList();
            model.AccountNumberList = objdal.GetAcountNumberByClinetId(clientid);
            return(View(model));
        }
Ejemplo n.º 3
0
 public ActionResult Create(ClientAccMapper objAccMapper)
 {
     try
     {
         // TODO: Add insert logic here
         ClientDAL objdal = new ClientDAL();
         string    str    = objdal.InsertAccountNumber(objAccMapper);
         if (str == "success")
         {
             return(RedirectToAction("Index", new { clientId = objAccMapper.ClientID }));
         }
         else
         {
             return(View(objAccMapper));
         }
     }
     catch
     {
         return(View(objAccMapper));
     }
 }