Exemple #1
0
 /// <summary>
 /// Updates the Doctor Info based on Normal user info
 /// </summary>
 /// <param name="user"></param>
 /// <param name="doctorFee"></param>
 /// <returns>Flag as true if updated successfully else false</returns>
 public bool UpdateDoctor(Users user)
 {
     try
     {
         user.Password = encrypt.Encrypt(user.Password);
         DoctorEditRemove DoctorEdit = new DoctorEditRemove();
         return(DoctorEdit.EditDoctor(user));
     }
     catch (EmailAlreadyExistsEx ex)
     {
         throw ex;
     }
     catch (PhoneAlreadyExistsEx ex)
     {
         throw ex;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemple #2
0
        /// <summary>
        /// Deletes Doctor from database based UserId of the doctor
        /// </summary>
        /// <param name="id"></param>
        /// <returns>Flag as true if deleted successfully else false</returns>
        public bool DeleteDoctor(int id)
        {
            DoctorEditRemove doctorRemove = new DoctorEditRemove();

            return(doctorRemove.RemoveDoctor(id));
        }