Пример #1
0
        public static void Update(Area item)
        {
            AreaEntity entity;

            entity = AreaMapper.Get(item);

            AreaDao.Update(entity);
        }
Пример #2
0
        public static int Add(Area item)
        {
            AreaEntity entity;

            entity  = AreaMapper.Get(item);
            item.Id = AreaDao.Add(entity);

            return(item.Id);
        }
Пример #3
0
        public static Area Get(int id)
        {
            Area       item;
            AreaEntity entity;

            entity = AreaDao.Get(id);
            item   = AreaMapper.Get(entity);

            return(item);
        }
Пример #4
0
        public static void Delete(Area item)
        {
            try
            {
                AreaEntity entity;

                entity = AreaMapper.Get(item);

                AreaDao.Delete(entity);
            }
            catch (Exception)
            {
                throw;
            }
        }