//[Required] //[Display(Name = "نام و نام خانوادگی")] //public string NameAndLastName { get; set; } public string DoRegisteration(IAuthentication.IAuthentication a) { var context = new ApplicationDbContext(); //context.Users.Where(b => b.== a.NameAndLastName); //this.NameAndLastName = a.NameAndLastName; return("my name is " + this.NameAndLastName + " and i am Admin "); }
public string DoRegisteration(IAuthentication.IAuthentication a) { var db = new Samane.DbContext_Classes.SamaneDbContext(); var h = new Hospital(); h.City = this.City; h.HospitalName = this.HospitalName; h.InChargePerson = this.NameAndLastName; h.PhoneNumber = this.PhoneNumberr; h.Province = this.Province; h.UserNamee = this.UserNamee; db.Hospitals.AddOrUpdate(h); db.SaveChanges(); return("my name is " + this.NameAndLastName + " and i am hospitaluser supervisor of " + this.HospitalName + " hospital"); }
public AppAuthentication(IAuthentication.IAuthentication user) { this.user = user; this.userApp = userApp; this.pass = pass; }