45 строки
1.3 KiB
C#
45 строки
1.3 KiB
C#
#region Copyright Syncfusion Inc. 2001 - 2022
|
|
// Copyright Syncfusion Inc. 2001 - 2022. All rights reserved.
|
|
// Use of this code is subject to the terms of our license.
|
|
// A copy of the current license can be obtained at any time by e-mailing
|
|
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
// applicable laws.
|
|
#endregion
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
// For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
|
|
|
|
namespace samplebrowser.Controllers
|
|
{
|
|
public partial class TimePickerController : Controller
|
|
{
|
|
public class timemodel
|
|
{
|
|
public object Value
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
// GET: /TimePickerDefault/
|
|
|
|
public ActionResult TimePickerFor()
|
|
{
|
|
timemodel time = new timemodel();
|
|
time.Value = DateTime.Now;
|
|
return View(time);
|
|
}
|
|
[HttpPost]
|
|
public ActionResult TimePickerFor(timemodel model)
|
|
{
|
|
timemodel time = new timemodel();
|
|
time.Value = DateTime.Now;
|
|
return View(time);
|
|
}
|
|
|
|
}
|
|
}
|