Exemple #1
0
        public int IsFollowing(int id)
        {
            var status = Airplanes.First(x => x.Id == id).Status;

            if (status == 2 || status == 16)
            {
                return(1);
            }
            return(0);
        }
Exemple #2
0
 public int UpdateStatus(int id, int status)
 {
     try
     {
         Airplanes.First(x => x.Id == id).ChangeStatus(status);
         return(1);
     }
     catch
     {
         return(0);
     }
 }