示例#1
0
        public bool UpdateClient(Client client)
        {
            DAL.Entity.Client cl_original = _dal.GetClientById(client.Id);

            if (cl_original != null)
            {
                DAL.Entity.Client cl_mod = cl_original;

                cl_mod.Username  = client.Username;
                cl_mod.Password  = client.Password;
                cl_mod.Birthday  = client.Birthday;
                cl_mod.Email     = client.Email;
                cl_mod.Firstname = client.Firstname;
                cl_mod.Lastname  = client.Lastname;

                _dal.UpdateClient(cl_original, cl_mod);
                return(true);
            }
            else
            {
                return(false);
            }
        }