public ActionResult Details(string id)
        {
            UncreditSaleDetailView uncreditSaleDetailView = this.GetUncreditSaleDetailView(id);

            UncreditSaleDetailDetailView uncreditSaleDetailDetailView = new UncreditSaleDetailDetailView();

            uncreditSaleDetailDetailView.UncreditSaleDetailView = uncreditSaleDetailView;
            // uncreditSaleDetailDetailView.EmployeeView = GetEmployee();

            return(View(uncreditSaleDetailDetailView));
        }
Esempio n. 2
0
        public GetUncreditSaleDetailResponse GetUncreditSaleDetail(GetRequest request)
        {
            GetUncreditSaleDetailResponse response = new GetUncreditSaleDetailResponse();

            try
            {
                UncreditSaleDetail uncreditSaleDetail = new UncreditSaleDetail();
                //UncreditSaleDetailView uncreditSaleDetailView = uncreditSaleDetail.ConvertToUncreditSaleDetailView();

                uncreditSaleDetail = _uncreditSaleDetailRepository.FindBy(request.ID);
                if (uncreditSaleDetail != null)
                {
                    UncreditSaleDetailView uncreditSaleDetailView = uncreditSaleDetail.ConvertToUncreditSaleDetailView();

                    response.UncreditSaleDetailView = uncreditSaleDetailView;
                }
            }
            catch (Exception ex)
            {
            }

            return(response);
        }