public IActionResult OnPostManageRecord(EntityRecord record, Entity entity, RecordRelatedRecordManagePageModel pageModel)
 {
     pageModel.TempData.Put("ScreenMessage", new ScreenMessage()
     {
         Message = "Record is updated successfully"
     });
     return(null);
 }
 public IActionResult OnPreManageRecord(EntityRecord record, Entity entity, RecordRelatedRecordManagePageModel pageModel, List <ValidationError> validationErrors)
 {
     if (record.Properties.ContainsKey("name"))
     {
         if (record["name"] as string == "123")
         {
             validationErrors.Add(new ValidationError("name", "123 as item name is not permitted"));
         }
     }
     return(null);
 }