public async Task <IActionResult> Save(DateTile tile) { if (ModelState.IsValid) { return(await SaveBaseTile(ConfigStore, tile)); } return(View("Add", tile)); }
public async Task <IActionResult> Save(DateTile tile) { if (ModelState.IsValid) { // Convert empty to null, empty strings cause the full date/time to print. if (tile.DateFormatString == "") { tile.DateFormatString = null; } if (tile.TimeFormatString == "") { tile.TimeFormatString = null; } return(await SaveBaseTile(ConfigStore, tile)); } return(View("Add", tile)); }