예제 #1
0
        public bool AddPerson(PersonReport personDetails)
        {
            PersonProvider provider = null;
            bool           isAdded  = false;

            try
            {
                provider = new PersonProvider();
                isAdded  = provider.AddPerson(personDetails);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(isAdded);
        }
 public virtual Person AddPerson([FromBody] Person person)
 {
     return(PersonProvider.AddPerson(person));
 }