public JArray PutCompoundUnit(CompoundUnits obj) //for Update
 {
     try
     {
         _units.UpdateCompoundUnits(obj); //.UpdateCompoundUnit(obj);
         return(GetCompoundUnit());
     }
     catch (Exception)
     {
         throw;
     }
 }
 public JArray PostCompoundUnit(CompoundUnits obj)    //insert data to the user table
 {
     try
     {
         _units.AddCompoundUnits(obj);//.AddCompoundUnit(obj);
         return(GetCompoundUnit());
     }
     catch (Exception)
     {
         throw;
     }
 }