Example #1
0
        public Doctor Put(DoctorRequests request)
        {
            Doctor c = new Doctor()
            {
                Id                     = request.Id,
                Name                   = request.Name,
                Description            = request.Description,
                Email                  = request.Email,
                JoinDate               = request.JoinDate,
                Title                  = request.Title,
                Website                = request.Website,
                PhoneNumber            = request.PhoneNumber,
                Reviews                = request.Reviews,
                Language               = request.Language,
                RewardsAndCertificates = request.RewardsAndCertificates
            };
            DoctorData cd = new DoctorData(Db);

            return(cd.UpdateDoctor(c));
        }