Exemplo n.º 1
0
        public CrmResponse InsertActivity(ENTITIES.Activity newActivity)
        {
            CrmResponse response = new CrmResponse();

            using (DalActivity context = new DalActivity())
            {
                response = context.InsertNewActivity(newActivity);
                if (response.rc > -1)
                {
                    //insert lines to schedule email sending
                    response = context.ScheduleEmails(response.rc);
                }
            }


            return(response);
        }