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.IO; | |
namespace SenseNet.ContentRepository.Tests.Data | |
{ | |
internal class FileSystemChunkWriterStream : Stream | |
{ | |
private readonly Guid _id; | |
private readonly int _chunkSize; | |
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.IO; | |
namespace SenseNet.ContentRepository.Tests.Data | |
{ | |
internal class FileSystemChunkReaderStream : Stream | |
{ | |
private readonly string _directoryPath; | |
private readonly int _chunkSize; |
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 SenseNet.ContentRepository.Storage.Data.SqlClient.Blob; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO; | |
using SenseNet.Diagnostics; | |
namespace SenseNet.ContentRepository.Tests.Data |
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 = "Dashboard"; | |
} | |
@using SenseNet.ContentRepository.Storage.Security | |
@using SenseNet.Portal.Helpers | |
@model SnWebApplication.Models.DashboardViewModel | |
<h2>@ViewBag.Title</h2> | |
<h3>@ViewBag.Message</h3> |
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.Linq; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using SNCR = SenseNet.ContentRepository; | |
using SenseNet.ContentRepository.Storage; | |
using SenseNet.ContentRepository.Storage.Security; | |
using SnWebApplication.Models; | |
namespace SnWebApplication.Controllers |
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 = "Delete task"; | |
ViewBag.Message = "Are you sure you want to delete this task?"; | |
} | |
@using SnWebApplication.Models | |
@model TaskViewModel | |
<h2>@ViewBag.Title</h2> | |
<h3>@ViewBag.Message</h3> |
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 = "Create task"; | |
} | |
@using SnWebApplication.Models | |
@model TaskViewModel | |
<h2>@ViewBag.Title</h2> | |
<div class="row"> | |
<div class="col-md-8"> |
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 Microsoft.AspNet.Identity | |
@if (Request.IsAuthenticated) | |
{ | |
using (Html.BeginRouteForm("Default", new | |
{ | |
ReturnUrl = ViewBag.ReturnUrl, | |
controller = "Account", | |
action = "LogOff" | |
}, FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) | |
{ |
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 ActionResult LogOff() | |
{ | |
SenseNet.Portal.Virtualization.AuthenticationHelper.Logout(); | |
return RedirectToLocal("/"); | |
} |
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 SenseNet.ContentRepository; | |
using SenseNet.ContentRepository.Storage.Security; | |
namespace SnWebApplication.Models | |
{ | |
public class TaskViewModel | |
{ | |
public readonly Task Task; |
NewerOlder