public IActionResult Update(OneSignalAppViewModel oneSignalAppViewModel) { if (ModelState.IsValid) { try { _OneSignalAppService.UpdateApp(oneSignalAppViewModel.OneSignalApps); ViewData["Msg"] = "One Signal App Updated Successfully!!!"; } catch (Exception ex) { ViewData["Msg"] = ex.Message; } } return(View()); }
public async Task <IActionResult> Update(string id) { OneSignalAppViewModel oneSignalApps = await _OneSignalAppService.ViewApp(id); return(View(oneSignalApps)); }