public void AddProtocolResult(ArchivedProtocolResultW aprotocolResult)
        {
            aprotocolResult.Id = Guid.NewGuid();
            db.ArchivedProtocolResults.Add(aprotocolResult.ToBase());

            db.SaveChanges();
        }
        public void EditProtocolResult(ArchivedProtocolResultW aprotocolResult)
        {
            var protocolResult = db.ArchivedProtocolResults.Single(apr => apr.Id == aprotocolResult.Id);

            protocolResult.ResultNumber = aprotocolResult.ResultNumber;
            //protocolResult.MethodValue = aprotocolResult.MethodValue;
            protocolResult.Results = aprotocolResult.Results;

            db.SaveChanges();
        }