Example #1
0
        public async Task <int> Put(AreaDTO model)
        {
            int result = 0;

            if (model != null)
            {
                var area = _BusinessBase.GetById(model.Id);
                if (area != null)
                {
                    area.AreaName = model.AreaName;
                    result        = await _BusinessBase.Put(model.Id, area);
                }
            }
            return(result);
        }
Example #2
0
        public async Task <int> Put(CuisineDTO model)
        {
            int result = 0;

            if (model != null)
            {
                var cusine = _BusinessBase.GetById(model.Id);
                if (cusine != null)
                {
                    cusine.Name = model.Name;
                    result      = await _BusinessBase.Put(model.Id, cusine);
                }
            }
            return(result);
        }