public static string ChangeReservations(int idReservation, string startDate, string endDate) { APICalls api = new APICalls(); int sessionUser = Convert.ToInt32(HttpContext.Current.Session["idUser"]); return(api.ChangeReservation(sessionUser, idReservation, startDate, endDate).Result); }