Пример #1
0
        // GET: PublicPlaces

        public ActionResult <IEnumerable <PublicPlaces> > Index()
        {
            return(View(storage.GetAll()));
        }
Пример #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;
            }
        }
Пример #3
0
 public IEnumerable <PublicPlaces> GetPlaces() => storageBroker.GetAll();
Пример #4
0
 public IEnumerable <NigerianStates> GetNigerianStates() => storageBroker.GetAll();