Exemplo n.º 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);
     }
 }
Exemplo n.º 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)));
        }
Exemplo n.º 3
0
        public int CellZoneCreate(CellZonesDTO cellZone)
        {
            var createrecord = CellZones.Create(mapper.Map <CellZones>(cellZone));

            return((int)createrecord.CellZoneId);
        }