// GET: PublicPlaces

        public ActionResult <IEnumerable <PublicPlaces> > Index()
        {
            return(View(storage.GetAll()));
        }
Exemple #2
0
        public bool SignIn(SignInViewModel model)
        {
            try
            {
                var users        = storage.GetAll();
                var compareUser  = storage.GetAll().Where(c => c.Email == model.Email).FirstOrDefault();
                var userToUpdate = users.Where(d => d.Email == model.Email).FirstOrDefault();

                if (userToUpdate == null)
                {
                    return(false);
                }

                userToUpdate.IsSignedIn = true;
                storage.Update(userToUpdate, compareUser);
                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
 public IEnumerable <PublicPlaces> GetPlaces() => storageBroker.GetAll();
Exemple #4
0
 public IEnumerable <NigerianStates> GetNigerianStates() => storageBroker.GetAll();