This file contains hidden or 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
| if (ChkRemeberMe.Checked) | |
| { | |
| var hcEmail = new HttpCookie("AcmeEmail", Convert.ToString(TxtUserName.Text.Trim())); | |
| var hcPassword = new HttpCookie("AcmePassword", Convert.ToString(TxtPassword.Text.Trim())); | |
| hcEmail.Expires = DateTime.Now.AddDays(30); | |
| hcPassword.Expires = DateTime.Now.AddDays(30); | |
| Response.Cookies.Add(hcEmail); | |
| Response.Cookies.Add(hcPassword); | |
| } |
This file contains hidden or 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
| if (itemExists.Count == 0) | |
| { | |
| int IntCityId = 0, IntStateId = 0, IntCountryId = 0; | |
| if ( | |
| int.TryParse( | |
| DataContext.GetCountryID(myDataSet.Tables[0].Rows[i][5].ToString()).ToString(), | |
| out IntCountryId)) | |
| { | |
| if ( | |
| int.TryParse( |
This file contains hidden or 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 System.Web.Mvc; | |
| namespace MvcApplication1.Controllers | |
| { | |
| public interface IHelloService | |
| { |
This file contains hidden or 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 StructureMap; | |
| namespace ConsoleApplication1 | |
| { | |
| /// <summary> | |
| /// See http://stackoverflow.com/questions/6777671/setting-up-structure-map-in-a-c-sharp-console-application | |
| /// Updated for SM 4: http://ardalis.com/using-structuremap-4-in-a-console-app | |
| /// </summary> |
This file contains hidden or 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; | |
| using System.Linq; | |
| namespace ImplicitDependencies | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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; | |
| using System.Linq; | |
| namespace ExplicitDependencies | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { |
This file contains hidden or 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
| ------ Run test started ------ | |
| Failed to configure settings for runsettings plugin 'VSTest Run Configuration' as it threw following exception: | |
| 'An error occurred while loading the settings. Error: Could not find 'RunSettings' node..' | |
| Please contact the plugin author. | |
| ========== Run test finished: 2 run (0:00:06.830683) ========== |
This file contains hidden or 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 MoviesController : Controller | |
| { | |
| private readonly IMovieRepository _movieRepository; | |
| public MoviesController(IMovieRepository movieRepository) | |
| { | |
| _movieRepository = movieRepository; | |
| } | |
| public MoviesController() : this(new EfMovieRepository()) | |
| {} |
This file contains hidden or 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 MvcMovie.Models; |
This file contains hidden or 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.Data.Entity; | |
| using System.Net; | |
| using System.Web.Mvc; | |
| using MvcMovie.Core.Interfaces; | |
| using MvcMovie.Infrastructure.Data; | |
| using MvcMovie.Infrastructure.Data.Repositories; | |
| using MvcMovie.Models; | |
| namespace MvcMovie.Controllers |
OlderNewer