public static void DeleteMailsData(int ID) { try { DBServiceClient dws = new DBServiceClient(); dws.DeleteMailsData(ID); dws.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public static void SetMailsData(Mail mailData) { try { DBServiceClient dws = new DBServiceClient(); dws.SetMailsData(mailData); dws.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public static List <Tag> GetTags() { List <Tag> tagsList = new List <Tag>(); try { DBServiceClient dws = new DBServiceClient(); tagsList = dws.GetTags(); dws.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } return(tagsList); }
public static List <Mail> GetMails(bool isSender, int chosenID) { List <Mail> mailsList = new List <Mail>(); try { DBServiceClient dws = new DBServiceClient(); mailsList = dws.GetMails(isSender, chosenID); dws.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } return(mailsList); }
public static List <Employee> GetEmployees() { List <Employee> employeesList = new List <Employee>(); try { DBServiceClient dws = new DBServiceClient(); employeesList = dws.GetEmployees(); dws.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } return(employeesList); }