Example #1
0
        // GET: Quotations/Details/5
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            QuotationViewModel quotation = Mapper.Map <QuotationViewModel>(quotationService.Get(id.Value));

            if (quotation == null)
            {
                return(HttpNotFound());
            }
            return(View(quotation));
        }