public String TestRecord(NotificationType notificationType) { if (String.IsNullOrEmpty(notificationType.SelectNotificationType)) { return "you did not select any notification type"; } else { return "you Select notification with id =" + notificationType.SelectNotificationType; } }
public ActionResult TestRecord() { NotificationType notificationType = new NotificationType(); return View(notificationType); }