Category Archives: ASP.NET MVC

ASP.NET MVC

Solution architecture: Dev-Test deployment for testing microservice solutions

This architecture represents how to configure your infrastructure for development and testing of a microservices-based system. This solution is built on the Azure managed services: Visual Studio Team Services, Service Fabric and SQL Database. These services run in a high-availability … Continue reading

Posted in ASP.NET MVC, C#, Education and Training, Software architecture | Leave a comment

A Comparison of the Top Four Enterprise-Architecture Methodologies

Nguồn Microsoft A Comparison of the Top Four Enterprise-Architecture Methodologies Roger Sessions ObjectWatch, Inc. May 2007 Applies to: Enterprise Architecture Summary: Twenty years ago, a new field was born that soon came to be known as enterprise architecture. This paper … Continue reading

Posted in ASP.NET MVC, C#, Database, Software architecture | Leave a comment

Architectural Patterns and Styles

(Nguồn MSDN) Overview This chapter describes and discusses high level patterns and principles commonly used for applications today. These are often referred to as the architectural styles, and include patterns such as client/server, layered architecture, component-based architecture, message bus architecture, … Continue reading

Posted in ASP.NET MVC, C#, Knowledge | Leave a comment

Website Builders Comparison Chart

Key features is based on our opinions and feedback from our visitors who completed our surveys:   See Squarespace See Wix Here See Weebly Here See Jimdo See GoDaddy See IM Creator Overall [1] 4.7 / 5 Stars 4.3 / … Continue reading

Posted in ASP.NET MVC, Web 2.0 API vs RSS Reader, Web Design | Leave a comment

Check if field exists / media picker is not null

Check out these razor methods: @Model.HasProperty(string propertyAlias) @Model.HasValue(string propertyAlias) @Model.IsNull(string propertyAlias) Refer: Umbraco Razor cheat-sheet

Posted in ASP.NET MVC, C# | Leave a comment

Create log for umbraco 7.x

//You can specificy the class your are logging LogHelper.Error(typeof(MyClass), “msg”, e); //Otherwise, you can use this code, that gets type automatically LogHelper.Error(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, “msg”, e); OR LogHelper.Error(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, “msg”, ex); OR @using Umbraco.Core.Logging; @{ LogHelper.Info(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, “Message”); } OR @using Umbraco.Core.Logging; @{   … Continue reading

Posted in ASP.NET MVC, C# | Leave a comment

Unit Test validation asp.net mvc

[TestMethod] public void AddCampaign_Admin_Validation() { var enumValue = RequestContentType.Json; var urlFormat = Utility.BaseUrl + “/LeadSourceService/AddCampaign?username={0}&password=1234”; var url = string.Format(urlFormat, “admin@mort.demo”); CampaignInfo info = new CampaignInfo { }; var providers = new ProviderCollection(); providers.Load(); var provider = providers.FirstOrDefault(c => c.SharingEnabled == … Continue reading

Posted in ASP.NET MVC, C# | Leave a comment