Exemplo n.º 1
0
        public IActionResult Upsert(int?id)
        {
            var frequency = new Frequency();

            if (id != null)
            {
                frequency = _blFrequency.Get(id.Value);
                if (frequency == null)
                {
                    return(NotFound());
                }
            }
            return(View(frequency));
        }
Exemplo n.º 2
0
        public IActionResult Upsert(int?id)
        {
            var category = new Category();

            if (id != null)
            {
                category = _blCategory.Get(id.Value);
                if (category == null)
                {
                    return(NotFound());
                }
            }
            return(View(category));
        }