public static void Update(Area item) { AreaEntity entity; entity = AreaMapper.Get(item); AreaDao.Update(entity); }
public static int Add(Area item) { AreaEntity entity; entity = AreaMapper.Get(item); item.Id = AreaDao.Add(entity); return(item.Id); }
public static Area Get(int id) { Area item; AreaEntity entity; entity = AreaDao.Get(id); item = AreaMapper.Get(entity); return(item); }
public static void Delete(Area item) { try { AreaEntity entity; entity = AreaMapper.Get(item); AreaDao.Delete(entity); } catch (Exception) { throw; } }