예제 #1
0
 public bool CellZoneDelete(CellZonesDTO cellZone)
 {
     try
     {
         CellZones.Delete(CellZones.GetAll().FirstOrDefault(c => c.CellZoneId == cellZone.CellZoneId));
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
예제 #2
0
        public void CellZoneUpdate(CellZonesDTO cellZone)
        {
            var eGroup = CellZones.GetAll().SingleOrDefault(c => c.CellZoneId == cellZone.CellZoneId);

            CellZones.Update((mapper.Map <CellZonesDTO, CellZones>(cellZone, eGroup)));
        }
예제 #3
0
        public int CellZoneCreate(CellZonesDTO cellZone)
        {
            var createrecord = CellZones.Create(mapper.Map <CellZones>(cellZone));

            return((int)createrecord.CellZoneId);
        }