コード例 #1
0
        public string AddPhone(Associate.Phone phone, string AssociateID)
        {
            using (AssociateConnDataContext asscon = new AssociateConnDataContext())
            {
                try
                {
                    int retphn = 0;
                    int AssoID = Convert.ToInt32(AssociateID);
                    retphn = asscon.Add_Phone(AssoID, phone.PhoneTypeID, phone.PhoneNo);
                    if (!(retphn == 0))
                        return "success";
                    else
                        return "failure";
                }
                catch (Exception ex)
                {
                    throw ex;
                }

            }
        }