public int DeleteSoftwareById(int Id)
        {
            SoftwaresDBEntities entities = new SoftwaresDBEntities();
            Software            software = new Software();

            software.Id = Id;
            entities.Entry(software).State = EntityState.Deleted;
            int Retval = entities.SaveChanges();

            return(Retval);
        }
        public int UpdateSoftware(int Id, string Name, string Version, string LicenceType, int Rank)
        {
            SoftwaresDBEntities entities = new SoftwaresDBEntities();
            List software = new List();

            software.Id                    = Id;
            software.Name                  = Name;
            software.Rank                  = Rank;
            software.Version               = Version;
            software.LicenceType           = LicenceType;
            entities.Entry(software).State = EntityState.Modified;

            int Retval = entities.SaveChanges();

            return(Retval);
        }