This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>@ViewBag.Title - My ASP.NET MVC Application</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link href="~/Content/less/bootstrap.less" rel="stylesheet"> | |
<style type="text/css" > | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CreateNewBid : Command<Bid> | |
{ | |
Logger logger = LogManager.GetCurrentClassLogger(); | |
public Guid UserId { set; private get; } | |
public int LotId { set; private get; } | |
public Decimal Price { set; get; } | |
public override Bid Execute(IDomainContextImpl context) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using System.Web; | |
using SqlFu; | |
namespace Auction.Web.Domain.Models | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.EditorFor(model => model.Title) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.DataAnnotations; | |
using Auction.Web.Domain.Models; | |
using Auction.Web.Utility; | |
namespace Auction.Web.Areas.Seller.Models | |
{ | |
public class AuctionViewModel : Domain.Models.Auction | |
{ | |
public AuctionViewModel(Domain.Models.Auction auction) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.DataAnnotations; | |
using System.Globalization; | |
using System.Web.Security; | |
namespace Auction.Web.Models | |
{ | |
using System.Web.Mvc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Mvc; | |
using Auction.Web.Areas.Seller.Models; | |
using Auction.Web.Domain; | |
using Auction.Web.Domain.Commands; | |
using Auction.Web.Domain.Models; | |
using Auction.Web.Domain.Queries; | |
using Auction.Web.Security; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.DataAnnotations; | |
using Auction.Web.Utility; | |
namespace Auction.Web.Areas.Seller.Models | |
{ | |
public class DateAndTime | |
{ | |
DateTime localDateTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Auction.Web.Utility | |
{ | |
public static class DateTimeExtensions | |
{ | |
public static DateTime ToLocalAuctionTime(this DateTime dt) | |
{ | |
// dt.DateTimeKind should be Utc! | |
var tzi = TimeZoneInfo.FindSystemTimeZoneById(AppSettings.TimeZoneId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundles.Add(new ScriptBundle("~/Scripts/site/js").Include( | |
"~/Scripts/jquery.validate.js", | |
"~/Scripts/jquery.validate.unobtrusive.js", | |
"~/Scripts/jquery.globalize/globalize.js", | |
"~/Scripts/jquery.globalize/cultures/globalize.culture." + System.Globalization.CultureInfo.CurrentCulture.ToString() + ".js", | |
"~/Scripts/site.js")); |
OlderNewer