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
// | |
// ViewController.swift | |
// Browser | |
// | |
// Created by Dan Beaulieu on 5/12/15. | |
// Copyright (c) 2015 Dan Beaulieu. All rights reserved. | |
// | |
import UIKit | |
import WebKit |
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.Data; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Net; | |
using System.Web; | |
using System.Web.Mvc; | |
using BlogEngine.Models; | |
using BlogEngine.Database.Repositories; |
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 BlogEngine.Models.Post | |
@using BlogEngine.Models | |
@{ | |
ViewBag.Title = "Create"; | |
} | |
<div class="page-content"> | |
<h2>Create</h2> |
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.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Web; | |
namespace BlogEngine.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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Web; | |
namespace BlogEngine.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
public class Post : IEntity | |
{ | |
[Key] | |
public int Id { get; set; } | |
[Required] | |
public string Title { get; set; } | |
public string URL { get; set; } | |
[Required] |
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 Tag : IEntity | |
{ | |
[Key] | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public List<Post> Posts { get; set; } | |
} |
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 BlogEngine.Models.Post | |
@using BlogEngine.Models | |
@{ | |
ViewBag.Title = "Create"; | |
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml"; | |
} | |
<div class="page-content"> | |
<h2>Create</h2> |
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
import UIKit | |
@objc protocol SideBarDelegate { | |
func sideBarDidSelectButtonAtIndex(index: Int) | |
optional func sideBarWillClose() | |
optional func sideBarWillOpen() | |
} | |
class SideBar: NSObject, SideBarTableViewControllerDelegate { | |
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
import UIKit | |
protocol SideBarTableViewControllerDelegate { | |
func sideBarControlDidSelectRow(indexPath: NSIndexPath) | |
} | |
class SideBarTableViewController: UITableViewController { | |
var delegate : SideBarTableViewControllerDelegate? |
OlderNewer