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