public bool DeleteStatus(int Fyrasiffror)
 {
     try
     {
         using (FSDDatabaseEntities dbB = new FSDDatabaseEntities())
         {
             StatusTable deleteb = dbB.StatusTable.Find(Fyrasiffror);
             dbB.StatusTable.Remove(deleteb);
             dbB.SaveChanges();
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }
 public bool CreateStatus(StatusTable NyStatus)
 {
     try
     {
         using (FSDDatabaseEntities dbV = new FSDDatabaseEntities())
         {
             StatusTable bt = new StatusTable();
             bt.Bfyrasiffror = NyStatus.Bfyrasiffror;
             bt.Bedomning    = NyStatus.Bedomning;
             bt.Datum        = NyStatus.Datum;
             bt.Kommentar    = NyStatus.Kommentar;
             dbV.StatusTable.Add(NyStatus);
             dbV.SaveChanges();
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }