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 JsDateHelper : IJsDateHelper | |
{ | |
public DateTime FromUnixTime(double unixTime) | |
{ | |
var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); | |
return epoch.AddMilliseconds(unixTime); | |
} | |
public long ToUnixTime(DateTime date) | |
{ |
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
namespace Solution.IoC | |
{ | |
public class DependencyInjectionProvider | |
{ | |
private IKernel _kernel; | |
private void SetUpDependencyInjection() | |
{ | |
//create _kernel | |
_kernel = new StandardKernel(); |
NewerOlder