public IActionResult OnPost()
        {
            if (ModelState.IsValid == true)
            {
                if (IOTDEviceDetail.IOTDEviceDetail_Id > 0)
                {
                    IOTDEviceDetail = _DeviceData.UpdateIOTDEviceDetails(IOTDEviceDetail);
                }
                else
                {
                    IOTDEviceDetail = _DeviceData.AddIOTDEviceDetails(IOTDEviceDetail);
                }


                return(RedirectToPage("/Stackholders/ViewIOTDEviceDetails", new { IOTDEviceDetail.IOTDEviceDetail_Id }));
            }
            return(Page());
        }