public IActionResult Index() { ViewBag.Page = "home"; // Retrieve user name for title string user = System.Security.Principal.WindowsIdentity.GetCurrent().Name; user = user.Substring(user.LastIndexOf('\\') + 1); // Strip off domain name ViewBag.User = user; CarnadContext db = new CarnadContext(); ContactViewModel data = new ContactViewModel(); data.contacts = db.Contacts; return(View(data)); }
public ContactsController(CarnadContext context) { _context = context; }
public GroupController(CarnadContext cc) { carnadContext = cc; }
public HomeController(CarnadContext cc) { carnadContext = cc; }
public GroupsController(CarnadContext context) { _context = context; }
public CountryController(CarnadContext cc) { carnadContext = cc; }