private static MyDoctorDataContract ConvertMyDoctorToDataContract(Doctor user,bool ismyt) //----------- { return new MyDoctorDataContract() { UserName = user.LiveID, NickName = user.Name, Description = user.Description, email = user.LiveID, Grade = user.Grade, phone = user.Phone, image = user.Image, ismy = ismyt, latitude = (double)user.Latitude, Longtitude = (double)user.Longitude }; }
/// <summary> /// Create a new Doctor object. /// </summary> /// <param name="liveID">Initial value of the LiveID property.</param> public static Doctor CreateDoctor(global::System.String liveID) { Doctor doctor = new Doctor(); doctor.LiveID = liveID; return doctor; }
private static DoctorUserDataContract ConvertDoctorUserToDataContract(Doctor user) //----------- { return new DoctorUserDataContract() { UserName = user.LiveID, NickName = user.Name, Description = user.Description, email = user.Email, Grade = user.Grade, phone = user.Phone, image = user.Image }; }
/// <summary> /// Deprecated Method for adding a new object to the Doctor EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDoctor(Doctor doctor) { base.AddObject("Doctor", doctor); }