Пример #1
0
        public async Task <int> Post(AreaDTO model)
        {
            int result = 0;

            if (model != null)
            {
                Area area = new Area();
                area.AreaName = model.AreaName;
                result        = await _BusinessBase.Post(area);
            }
            return(result);
        }
Пример #2
0
        public async Task <int> Post(CuisineDTO model)
        {
            int result = 0;

            if (model != null)
            {
                Cuisine cusine = new Cuisine();
                cusine.Name = model.Name;
                result      = await _BusinessBase.Post(cusine);
            }
            return(result);
        }