Ejemplo n.º 1
0
 public static bool UpdateRelativeByPeople(int people_Id, string name, string phoneNo, string workingCondition, string company, string relationship)
 {
     try
     {
         DbEntry.UsingTransaction(delegate
         {
             Relative st         = Relative.FindOne(CK.K["People_Id"] == people_Id && CK.K["IsDelete"] == false);
             st.Name             = name;
             st.PhoneNo          = phoneNo;
             st.WorkingCondition = workingCondition;
             st.Company          = company;
             st.Relationship     = relationship;
             st.Save();
         });
     }
     catch { return(false); }
     return(true);
 }