Example #1
0
        /* Customer
         * TODO
         * 1. Create a new customer
         * 2. Get All customer
         * 3. Get  Customer by Name
         * 4. Get  Customer by ID
         * 5. Edit Customer by ID
         * 6. Delete Customer by ID
         */

        /// <summary>
        /// Adds the customer.
        /// </summary>
        /// <param name="firstName">First name.</param>
        /// <param name="lastname">Lastname.</param>
        /// <param name="location">Location.</param>
        public void AddCustomer(string firstName, string lastname, int location, string email, string password)
        {
            var customer = new Customer
            {
                FirstName  = firstName,
                LastName   = lastname,
                LocationId = location,
                Email      = email,
                Password   = password
            };

            _db.Add(customer);
        }