public bool CellZoneDelete(CellZonesDTO cellZone) { try { CellZones.Delete(CellZones.GetAll().FirstOrDefault(c => c.CellZoneId == cellZone.CellZoneId)); return(true); } catch (Exception ex) { return(false); } }
public void CellZoneUpdate(CellZonesDTO cellZone) { var eGroup = CellZones.GetAll().SingleOrDefault(c => c.CellZoneId == cellZone.CellZoneId); CellZones.Update((mapper.Map <CellZonesDTO, CellZones>(cellZone, eGroup))); }
public int CellZoneCreate(CellZonesDTO cellZone) { var createrecord = CellZones.Create(mapper.Map <CellZones>(cellZone)); return((int)createrecord.CellZoneId); }