public bool Delete(LocationLayer layer)
 {
     try
     {
         _ctx.LocationLayers.Remove(layer);
         return true;
     }
     catch
     {
         return false;
     }
 }
 public bool Insert(LocationLayer layer)
 {
     try
     {
         _ctx.LocationLayers.Add(layer);
         return true;
     }
     catch
     {
         return false;
     }
 }
 public bool Update(LocationLayer old, LocationLayer updated)
 {
     try
     {
         var userEntry = _ctx.Entry(old);
         userEntry.State = EntityState.Modified;
         userEntry.CurrentValues.SetValues(updated);
         return true;
     }
     catch
     {
         return false;
     }
 }