Exemplo n.º 1
0
 public SAFEZONE GetSafezone(int id)
 {
     using (ReidiusDBEntities7 enteties = new ReidiusDBEntities7())
     {
         return(enteties.SAFEZONE.FirstOrDefault(e => e.safezoneID == id));
     }
 }
Exemplo n.º 2
0
 public IEnumerable <SAFEZONE> GetSafezones()
 {
     using (ReidiusDBEntities7 entities = new ReidiusDBEntities7())
     {
         return(entities.SAFEZONE.ToList());
     }
 }
Exemplo n.º 3
0
 public void Post([FromBody] SAFEZONE safezone)
 {
     using (ReidiusDBEntities7 entities = new ReidiusDBEntities7())
     {
         entities.SAFEZONE.Add(safezone);
         entities.SaveChanges();
     }
 }