public bool checkUsername(string userName) { var model = new TouristModel(); var usernameExists = model.CheckIfUsernameExists(userName); return(usernameExists); }
public ProgressAndMessageModel Get(string androidId) { var model = new TouristModel(); var progress = model.ReturnTouristPlace(androidId); return(progress); }
// POST api/tourist public void Post([FromBody] NewTouristModel newTourist) { var model = new TouristModel(); model.SaveTourist(newTourist); }