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; | |
using Auction.Web.Domain.Entities; | |
using Auction.Web.Domain.Infrastructure; | |
using SqlFu; | |
namespace Auction.Web.Domain.Commands | |
{ |
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
@model object | |
<link rel="stylesheet" type="text/css" href="/Scripts/mdd_styles.css" /> | |
<div class="control-group@(Html.ValidationErrorFor(m => m, " error"))"> | |
@Html.LabelFor(m => m, new { @class = "control-label" }) | |
<div class="mdd_toolbar"></div> | |
@Html.TextAreaFor( | |
m => m, | |
8, 15, | |
ViewBag.ClearTextField == true ? new { @class = "mdd_editor clear-text-field" } : new { @class = "mdd_editor" } ) | |
@Html.ValidationMessageFor(m => m, null, new { @class = "help-inline" }) |
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
@model Auction.Web.Domain.Models.ContentPage | |
@{ | |
ViewBag.Title = Model.Title; | |
ViewBag.Description = Model.Markdown.Substring(0, Math.Min(Model.Markdown.Length - 1, 50)); | |
} | |
<article class="content-item"> | |
<header> | |
<h1>@Model.Title</h1> |
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.Linq.Expressions; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace Auction.Web.Utility | |
{ | |
public static class Validation |
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
@model Auction.Web.Models.LoginModel | |
@{ | |
ViewBag.Title = "Log in"; | |
} | |
<h1>@ViewBag.Title <small>with local or social network account</small></h1> | |
<div class="row-fluid"> | |
<div class="span6"> | |
@using (Html.BeginForm(null, null, new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal well" })) | |
{ |
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 FluentMigrator; | |
namespace Auction.Web.Domain.Migrations | |
{ | |
[Migration(2)] | |
public class UserProfile : Migration | |
{ | |
public override void Up() | |
{ |
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.Controllers; | |
using Auction.Web.Domain.Commands; | |
using Auction.Web.Domain.Entities; | |
using Auction.Web.Domain.Queries; | |
using Auction.Web.Security; | |
using Auction.Web.Domain; |
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 Auction.Service.Contracts; | |
using Auction.Web.Domain.Commands; | |
using Auction.Web.Domain.Entities; | |
using Auction.Web.Domain.Queries; | |
using Auction.Web.Utility; | |
using AutoMapper; | |
using Microsoft.AspNet.SignalR; | |
using Microsoft.AspNet.SignalR.Hubs; | |
using System; |
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 Auction.Service.Contracts; | |
using Auction.Web.Domain; | |
using Auction.Web.Domain.Events; | |
using AutoMapper; | |
using Microsoft.AspNet.SignalR; | |
using Microsoft.AspNet.SignalR.Infrastructure; | |
namespace Auction.Web.Hubs.EventHandlers | |
{ | |
public class PriceUpdatedHandler : BaseEventHandler<PriceUpdatedEvent> |
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
@{ | |
ViewBag.Title = "SignalR Auction"; | |
} | |
<div class="row-fluid""> | |
<div class="page-header"> | |
<h1> | |
<strong data-bind="text: Title"></strong> | |
<small data-bind="text: Info"></small> | |
</h1> |