public ApiResponseViewModel GetByInvoiceId(int id) { if (HttpContext.Current.Session["UserLogged"] == null) { return(CommonConstants.accessDenied); } return(_InvoiceDetailService.GetByInvoiceId(id)); }