// GET: PublicPlaces public ActionResult <IEnumerable <PublicPlaces> > Index() { return(View(storage.GetAll())); }
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();
public IEnumerable <NigerianStates> GetNigerianStates() => storageBroker.GetAll();