Пример #1
0
 public void Register(UserDetails userDetails)
 {
     new UserDetails().Register(userDetails);
 }
Пример #2
0
        public void Register(UserDetails userDetails)
        {
            tbl_UserDetails entity = new tbl_UserDetails
            {
                Name = userDetails.Name,
                MobileNumber = userDetails.MobileNumber,
                CompanyName = userDetails.CompanyName,
                CompanyType_Id = Convert.ToInt32(userDetails.CompanyType),
                Designation = userDetails.Designation,
                Email = userDetails.Email,
                City = userDetails.City,
                UserName=String.Empty,
                Password=String.Empty,
                Registered_Date=DateTime.Now,
                RoleId=3
            };

            db.tbl_UserDetails.AddObject(entity);
            db.SaveChanges();

            //otp generation logic
        }