Creating Your Own Validation Attribute In MVC and Web API 2.0

Data validation in an application is one of the major tasks for the developer now-a-days. Data validation is the process of ensuring that the data entered by any users is correct and is useful. It uses routines, often called validation rules, validation constraints or check routines, which check for the correctness, meaningfulness, and security of data, that gets put into a web application. These rules are mainly implemented in UI, business logic, and databases.
If we check in any web application, we will mainly find validations in the UI. As the user interface is the primary source, where the user can enter invalid data in the application, we mainly focus on UI validation.


Identify ASP.NET MVC Assembly Version

The MVC  pattern separates an application into three main parts.

The Model − Collection of classes that are working with the business logic.
The View − It is responsible for the User Interface. It is an HTML format whose extension is .cshtml.
The Controller − Collection of classes that are working data logic and business logic.

Every MVC application contains 3 folders: Controller, View, and Model.


AngularJS, Basic to Expert: Day One

I am going to write this article series to help you to learn AngularJS 1.x.x as quickly and as simply as possible, from a basic to expert level.
We will see what AngularJS is, and will learn the basics of AngularJS, modules, controllers, directives, expressions, filters, data binding, Scopes, Validations, Routing, Service, DI, and more.


Getting Started With ASP.NET Core MVC Apps Using VS Code

In this article, we will discuss how we can create a HelloWorld app with ASP.NET Core 2.0 using Visual Studio Code. We will learn how to create an ASP.NET Core MVC application, how to create a new Controller, how to create a new View, and how to run the HelloWorld app, etc.

.NET Core 2.0 SDK
Visual Studio Code
VS Code C# extension

If you want to know how to install the new Visual Studio Code in the machine, you can see the easy steps of installation of Visual Studio Code article. Read it here:


Creating a REST Web Service With Java and Spring, Part 1

In the modern world of interconnected software, web applications have become an indispensable asset. Foremost among these web applications is the Representational State Transfer (REST) web service, with Java becoming one of the most popular implementation languages. Within the Java REST ecosystem, there are two popular contenders: Java Enterprise Edition (JavaEE) and Spring. While both have their strengths and weaknesses, this article will focus on Spring and create a simple order management RESTful web application using Spring 4. Although this management system will be simple compared to the large-scale RESTful services found today, it will nonetheless demonstrate the basic thought process, design decisions, and implementation tests required to create a Level 3 (hypermedia-driven) Spring REST web service.
By the end of this article, we will have created a fully functional Spring REST order management system. While the source code illustrated in this article covers the essential aspects of the order management system, there are other components and code (such as test cases) that support the main service that are not shown. All of the source code, including these supporting aspects, can be found in the following Github repository: