Exemple #1
0
        public async Task <ActionResult> Create(int?id)
        {
            DraperiesType = new DraperiesType();
            if (id == null)
            {
                return(View(DraperiesType));
            }
            //int cusId = Convert.ToInt32(id);
            DraperiesType = await _draperiesService.GetById((int)id);

            if (DraperiesType == null)
            {
                return(NotFound());
            }
            return(View(DraperiesType));
        }
Exemple #2
0
        public async Task <ActionResult> Delete(int id)
        {
            DraperiesType = await _draperiesService.GetById(id);

            return(View(DraperiesType));
        }