예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 public ModelHeadLine()
 {
     _headlineTable   = new HeadLineTable();
     _headlineContext = new FashionSiteContext();
 }
 public NewGalleryController()
 {
     _modelGallery     = new ModelGallery();
     _galleriesContext = new FashionSiteContext();
 }
예제 #4
0
 public ModelGallery()
 {
     _galleryContext = new FashionSiteContext();
     _galleryTable   = new GalleryTable();
 }
 public EnServicesController()
 {
     _servicesContext = new FashionSiteContext();
 }
 public EnReferancesController()
 {
     _referancesContext = new FashionSiteContext();
 }
예제 #7
0
 public NewHeadLineController()
 {
     _headlineContext = new FashionSiteContext();
     _modelHeadLine   = new ModelHeadLine();
 }
예제 #8
0
 public ModelCategory()
 {
     _categoryContext = new FashionSiteContext();
     _categoryTable   = new CategoriesTable();
 }
예제 #9
0
 public ComingData()
 {
     _dataContext = new FashionSiteContext();
 }
 public AllCategoryController()
 {
     _modelCategory   = new ModelCategory();
     _categoryContext = new FashionSiteContext();
 }
예제 #11
0
 public ContactController()
 {
     _modelUser      = new ModelUser();
     _contactContext = new FashionSiteContext();
 }
예제 #12
0
 public AllMediaController()
 {
     _mediaContext = new FashionSiteContext();
     _modelMedia   = new ModelMedia();
 }
예제 #13
0
 public LoginCore()
 {
     _adminInformationTable = new AdminInformationTable();
     _FashionSiteContext    = new FashionSiteContext();
 }
 public UserSettingsController()
 {
     _control      = new ModelUser();
     _adminContext = new FashionSiteContext();
 }
예제 #15
0
 public ModelUser()
 {
     _contactTable = new ContactsTable();
     _adminContext = new FashionSiteContext();
     _adminTable   = new AdminInformationTable();
 }
예제 #16
0
 public ModelArticle()
 {
     _articlesTable  = new ArticlesTable();
     _articleContext = new FashionSiteContext();
 }
예제 #17
0
        public NewArticlesController()
        {
            _modelArticle = new ModelArticle();

            _articlesContext = new FashionSiteContext();
        }
예제 #18
0
 public EnGalleryController()
 {
     galleryContext = new FashionSiteContext();
 }
예제 #19
0
 public ModelMedia()
 {
     _mediaContext = new FashionSiteContext();
     _mediaTable   = new MediasTable();
 }
 public EnProductsController()
 {
     _productContext = new FashionSiteContext();
 }
 public EnInstitutionalController()
 {
     _institutionalContext = new FashionSiteContext();
 }
예제 #22
0
 public EnHomeController()
 {
     FashionSiteContext = new FashionSiteContext();
 }