示例#1
0
        public bool AddPerson(PersonDto pDto)
        {
            Person p = new Person()
            {
                Id = pDto.Id, Name = pDto.Name, Age = pDto.Age, CreateDateTime = DateTime.Now
            };

            if (personDal.AddPerson(p) != 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
 public bool AddPerson(string name)
 {
     return(personDal.AddPerson(name));
 }