internal static void ReleaseInterface(IntPtr comInterface) { if (comInterface != IntPtr.Zero) { IntPtr vtable = Marshal.ReadIntPtr(comInterface); if (vtable == comVtable) { Release(comInterface); } else { ReleaseSlot releaseSlot = (ReleaseSlot)Marshal.PtrToStructure((IntPtr)((long)vtable + (long)(IntPtr.Size * 2)), typeof(ReleaseSlot)); releaseSlot.Release(comInterface); } } }
public bool ReleaseSlot([FromBody] ReleaseSlot objSlotEquest) { bool retval = true; try { //List<ReleaseSlot> objList = new List<ReleaseSlot>(); ReleaseSlot rs = new ReleaseSlot(); rs.ParkingSlotId = 10; rs.ReleasedDate = System.DateTime.Today; // looking for set value by entity service as project from team mate } catch (System.Exception ex) { retval = false; } return(retval); }