Ejemplo n.º 1
0
 public string Register(RegisterModel model)
 {
     try
     {
         User user = new User();
         user.CompanyName = model.CompanyName;
         user.Email = model.Email;
         user.Password = model.Password;
         user.CityId = model.CityId;
         this.entities.Users.Add(user);
         entities.SaveChanges();
         return "Registered Succefully";
     }
     catch { return "Not Register"; }
 }
Ejemplo n.º 2
0
 public ActionResult Register(RegisterModel model)
 {
     _user.Register(model);
     return View();
 }