예제 #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;
            }
        }