public static bool DeleteRelative(int relativeId)
 {
     try
     {
         DbEntry.UsingTransaction(delegate
         {
             Relative st = Relative.FindById(relativeId);
             st.IsDelete = true;
             st.Save();
         });
     }
     catch { return(false); }
     return(true);
 }
 public static bool UpdateRelative(int relativeId, string name, string phoneNo, string workingCondition, string company, string relationship)
 {
     try
     {
         DbEntry.UsingTransaction(delegate
         {
             Relative st         = Relative.FindById(relativeId);
             st.Name             = name;
             st.PhoneNo          = phoneNo;
             st.WorkingCondition = workingCondition;
             st.Company          = company;
             st.Relationship     = relationship;
             st.Save();
         });
     }
     catch { return(false); }
     return(true);
 }