Beispiel #1
0
 public static bool Register(Company company)
 {
     try
     {
         ClientExtenctions.PostData(company, string.Concat(UserUrl, "Register"));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 public static bool CompleteRent(Rent rent)
 {
     try
     {
         ClientExtenctions.PostData(rent, string.Concat(RentUrl, "CompleteRent"));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Beispiel #3
0
 public static bool Login(Company loginModel)
 {
     try
     {
         ClientExtenctions.PostData(loginModel, string.Concat(UserUrl, "Login"));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Beispiel #4
0
 public static bool AddPlaneModel(PlaneModel planeModel)
 {
     try
     {
         ClientExtenctions.PostData(planeModel, string.Concat(PlaneUrl, "AddPlaneModel"));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }