protected void lnkButtonAddUpdate_Click(object sender, EventArgs e)
 {
     if (((LinkButton)sender).CommandName == "Add")
     {
         var _msg = _objMaster.Supplier_ApiLoc_Add(new MDMSVC.DC_Supplier_ApiLocation
         {
             ApiEndPoint    = txtSupplierApiLocEndPoint.Text,
             ApiLocation_Id = Guid.NewGuid(),
             Create_Date    = DateTime.Now,
             Create_User    = System.Web.HttpContext.Current.User.Identity.Name,
             Entity_Id      = Guid.Parse(ddlSupplierApiLocEntity.SelectedValue),
             Status         = ddlSupplierApiLocStatus.SelectedItem.Text,
             Supplier_Id    = mySupplier_Id
         });
         ClearControls();
         LoadApiLocations();
         BootstrapAlert.BootstrapAlertMessage(dvMsg, _msg.StatusMessage, (BootstrapAlertType)_msg.StatusCode);
     }
     else if (((LinkButton)sender).CommandName == "Modify")
     {
         Guid myRow_Id = Guid.Parse(((LinkButton)sender).CommandArgument);
         var  _msg     = _objMaster.Supplier_ApiLoc_Update(new MDMSVC.DC_Supplier_ApiLocation
         {
             ApiEndPoint    = txtSupplierApiLocEndPoint.Text,
             ApiLocation_Id = myRow_Id,
             Edit_Date      = DateTime.Now,
             Edit_User      = System.Web.HttpContext.Current.User.Identity.Name,
             Entity_Id      = Guid.Parse(ddlSupplierApiLocEntity.SelectedValue),
             Status         = ddlSupplierApiLocStatus.SelectedItem.Text,
             Supplier_Id    = mySupplier_Id
         });
         ClearControls();
         LoadApiLocations();
         BootstrapAlert.BootstrapAlertMessage(dvMsg, _msg.StatusMessage, (BootstrapAlertType)_msg.StatusCode);
     }
 }