public void Log(string userName, string userPassword) { try { AdminInformationTable adminTable = (from p in _FashionSiteContext.Admin select p).First(); if (userName == adminTable.AdminName && userPassword == adminTable.AdminPassword) { Status = true; } else { Status = false; } } catch (Exception) { _adminInformationTable.AdminName = "site"; _adminInformationTable.AdminPassword = "******"; using (FashionSiteContext db = new FashionSiteContext()) { db.Admin.Add(_adminInformationTable); db.SaveChanges(); } _adminInformationTable = (from p in _FashionSiteContext.Admin select p).First(); if (userName == _adminInformationTable.AdminName && userPassword == _adminInformationTable.AdminPassword) { Status = true; } else { Status = false; } } }
public ModelHeadLine() { _headlineTable = new HeadLineTable(); _headlineContext = new FashionSiteContext(); }
public NewGalleryController() { _modelGallery = new ModelGallery(); _galleriesContext = new FashionSiteContext(); }
public ModelGallery() { _galleryContext = new FashionSiteContext(); _galleryTable = new GalleryTable(); }
public EnServicesController() { _servicesContext = new FashionSiteContext(); }
public EnReferancesController() { _referancesContext = new FashionSiteContext(); }
public NewHeadLineController() { _headlineContext = new FashionSiteContext(); _modelHeadLine = new ModelHeadLine(); }
public ModelCategory() { _categoryContext = new FashionSiteContext(); _categoryTable = new CategoriesTable(); }
public ComingData() { _dataContext = new FashionSiteContext(); }
public AllCategoryController() { _modelCategory = new ModelCategory(); _categoryContext = new FashionSiteContext(); }
public ContactController() { _modelUser = new ModelUser(); _contactContext = new FashionSiteContext(); }
public AllMediaController() { _mediaContext = new FashionSiteContext(); _modelMedia = new ModelMedia(); }
public LoginCore() { _adminInformationTable = new AdminInformationTable(); _FashionSiteContext = new FashionSiteContext(); }
public UserSettingsController() { _control = new ModelUser(); _adminContext = new FashionSiteContext(); }
public ModelUser() { _contactTable = new ContactsTable(); _adminContext = new FashionSiteContext(); _adminTable = new AdminInformationTable(); }
public ModelArticle() { _articlesTable = new ArticlesTable(); _articleContext = new FashionSiteContext(); }
public NewArticlesController() { _modelArticle = new ModelArticle(); _articlesContext = new FashionSiteContext(); }
public EnGalleryController() { galleryContext = new FashionSiteContext(); }
public ModelMedia() { _mediaContext = new FashionSiteContext(); _mediaTable = new MediasTable(); }
public EnProductsController() { _productContext = new FashionSiteContext(); }
public EnInstitutionalController() { _institutionalContext = new FashionSiteContext(); }
public EnHomeController() { FashionSiteContext = new FashionSiteContext(); }