Ejemplo n.º 1
0
        // GET: Leads/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            LeadViewModel lead = Mapper.Map <LeadViewModel>(_leadService.Get(id.Value));

            if (lead == null)
            {
                return(HttpNotFound());
            }
            return(View(lead));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> Get(Guid id)
        {
            var lead = await _leadService.Get(id);

            return(Ok(lead));
        }