public async Task <ActionResult> Edit(int id)
        {
            ResultCategoriaProductoServiceModel resultCategoria = (ResultCategoriaProductoServiceModel)(await _CategoriaService.GetCategoriaById(id)).Data;

            var catarmentEdit = new CategoriaProductoWebUiModel()
            {
                Categoria_Producto_Id = resultCategoria.Categoria_Producto_Id,
                Nombre = resultCategoria.Nombre
            };


            return(View(catarmentEdit));
        }
        public async Task <ActionResult> Details(int id)
        {
            ResultCategoriaProductoServiceModel result = new ResultCategoriaProductoServiceModel();

            result = (ResultCategoriaProductoServiceModel)(await _CategoriaService.GetCategoriaById(id)).Data;
            CategoriaProductoWebUiModel oCategoriaProductoWebUiModel = new CategoriaProductoWebUiModel()
            {
                Categoria_Producto_Id = result.Categoria_Producto_Id,
                Nombre = result.Nombre
            };

            return(View(oCategoriaProductoWebUiModel));
        }