public bool Save(Entity.Model.Asset asset)
 {
     IAssetComponent component = new AssetComponent();
     try
     {
         component.Save(asset);
     }
     catch (Exception ex)
     {
         
         throw new FaultException(ex.Message);
     }
     return true;
    // throw new NotImplementedException();
 }
 protected void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         using(IAssetComponent assetservice = new AssetComponent())
         {
             Asset myasset = new Asset();
             myasset.ID = int.Parse(txtassetID.Text);
             myasset.RoomID = int.Parse(txtroomid.Text);
             myasset.Name = txtname.Text;
             myasset.IsEnabled = CheckBox1.Checked;
             assetservice.Save(myasset);
         }
     }
     catch (Exception)
     {
         
         throw;
     }
 }