vgquotes/Src/VideoGameQuotes.Web/Models/EditQuoteModel.cs
tmont 25172d14a3 * compressed javascript
* renamed css file
* removed copypaste code for js includes
* added pdn files
* changed unused images/javascript build type from Content to None
2011-03-01 00:11:17 +00:00

19 lines
531 B
C#

using System.Collections.Generic;
using System.Linq;
using VideoGameQuotes.Api;
namespace VideoGameQuotes.Web.Models {
public class EditQuoteModel : EditQuoteModelBase {
public EditQuoteModel(Quote quote) {
QuoteId = quote.Id;
Flags = quote.Flags.ToList();
QuoteText = quote.Text;
CategoryIds = quote.Categories.Select(category => category.Id).ToList();
GameId = quote.Game.Id;
ActionName = "Edit";
}
public int QuoteId { get; set; }
public List<QuoteFlag> Flags { get; set; }
}
}