public bool DeleteQuery(IRepositoryLocator locator,long id)
 {
     var q = locator.GetById<Query>(id);
     locator.Delete(q);
     return true;
 }