예제 #1
0
        public async Task <IActionResult> GetLead(int id)
        {
            try
            {
                var lead = await _leadService.GetLeadById(id);

                return(Ok(lead.ToLeadResponse()));
            }
            catch (Exception e)
            {
                return(BadRequest(new ErrorPayload(1, e.Message)));
            }
        }
예제 #2
0
 public LeadDto GetLead(int leadId)
 {
     return(_leadService.GetLeadById(leadId));
 }