public List <FuneralCompany> getAll()
 {
     try
     {
         List <FuneralCompany> listFuneralCompany = new List <FuneralCompany>();
         using (ApplicationDbContext db = new ApplicationDbContext())
         {
             listFuneralCompany = new FuneralCompanyRepository(db).getAll();
         }
         return(listFuneralCompany);
     }
     catch (Exception ex) { }
     return(new List <FuneralCompany>());
 }
 public FuneralCompany getByID(String id)
 {
     try
     {
         FuneralCompany funeralCompany = null;
         using (ApplicationDbContext dbContext = new ApplicationDbContext())
         {
             funeralCompany = new FuneralCompanyRepository(dbContext).getByID(id.ToString());
         }
         return(funeralCompany);
     }
     catch (Exception ex) { }
     return(null);
 }