public static Lawyer CreateLawyer(Person person) { var vakil = new Lawyer { Id = Guid.NewGuid(), StartDate = new DateTime(2012, 6, 12), Person = person, }; return vakil; }
public static Lawyer CreateLawyer(Person person, DateTime startDate) { // Contract.Requires<ArgumentNullException>(person != null ,"person"); var lawyer = new Lawyer { Id = Guid.NewGuid(), StartDate = startDate, Person = person, }; return(lawyer); }
public static Lawyer CreateLawyer(Person person , DateTime startDate) { // Contract.Requires<ArgumentNullException>(person != null ,"person"); var lawyer = new Lawyer { Id = Guid.NewGuid(), StartDate = startDate, Person = person, }; return lawyer; }