Exemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            var service = new LeadService();
            var model   = service.GetLeadByID(id);

            return(View(model));
        }
Exemplo n.º 2
0
        public IHttpActionResult Get(int id)
        {
            LeadService leadService = CreateLeadService();
            var         lead        = leadService.GetLeadByID(id);

            return(Ok(lead));
        }
Exemplo n.º 3
0
        public ActionResult Edit(int id)

        {
            var service = new LeadService();
            var detail  = service.GetLeadByID(id);
            var model   =
                new LeadEdit
            {
                ID        = detail.ID,
                Name      = detail.Name,
                Company   = detail.Company,
                Phone     = detail.Phone,
                Email     = detail.Email,
                Converted = detail.Converted
            };

            return(View(model));
        }