public ApiResponseViewModel GetById(int id)
 {
     if (HttpContext.Current.Session["UserLogged"] == null)
     {
         return(CommonConstants.accessDenied);
     }
     return(_InvoiceDetailService.GetById(id));
 }
Example #2
0
 public IActionResult GetById(int id)
 {
     var invoiceDetail = _invoiceDetailService.GetById(id);
     var invoiceDetailDTO = _mapper.Map<InvoiceDetailDto>(invoiceDetail);
     return Ok(invoiceDetailDTO);
 }