Beispiel #1
0
        // GET: SalesItemController1/Details/5
        public ActionResult Details(int id)
        {
            if (!_Salesrepos.isExist(id))
            {
                return(NotFound());
            }
            var typesofproducts = _Salesrepos.FindById(id);
            var model           = _mapper.Map <SalesItemViewModel>(typesofproducts);

            return(View(model));
        }
        public async Task <IActionResult> Sale()
        {
            var sale = await _salesRepository.FindById(2);

            return(Content("done"));
        }