public ActionResult Logout() { appLogCreator.AddLog(this, "ACTION*/-LOGOUT", DateTime.Now); appLogCreator.PushLogs(); _session = Session.getInstance; Household householdUser = (Household)_session.GetUser(); householdUser.IsLogin = false; new HouseholdMapper().Update(householdUser).Save().Commit(); _session.endSession(); return(RedirectToAction("Index", "Home")); }
public ApplicationUsageController([FromServices] IAppLogCreator ac, [FromServices] IAppLogRetriever ar) { ac.PushLogs(); applicationUsage = new ApplicationUsage(ar); }