Exemple #1
0
        public bool SignUp(Emloyee.Model.Model.Employee employee)
        {
            MaxlinkEntities maxlinkEntities = new MaxlinkEntities();

            Emloyee.Model.Model.Employee employee1 = new Emloyee.Model.Model.Employee();
            employee1.Name     = employee.Name;
            employee1.Email    = employee.Email;
            employee1.Password = employee.Password;
            maxlinkEntities.Employee.Add(employee1);
            maxlinkEntities.SaveChanges();
            return(true);
        }
Exemple #2
0
        public object SignUp(Emloyee.Model.Model.Employee employee)
        {
            try
            {
                //long custId = 0;


                bool response = accountRepository.SignUp(employee);
                if (response)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                return(false);
            }
        }