Tag Archives: C#

Upload image to ASP.NET Web API 2

By | October 8, 2020

Introduction This post will provide detail on uploading image from a web application (ASP.NET MVC5 web application) to a web service (ASP.NET WebAPI2). We will use Visual Studio 2012 (.NET framework 4.5) to build web application and web service. Web Application Web application is written using Microsoft ASP.NET MVC5 and Razor views. The below given… Read More »

Snippet – Palindrome using C#

By | October 27, 2015

Old simple Palindrome using C# This is just a code snippet for creating a palindrome program. Please find code below. Project Structure This is a console application built using VS 2012. IDataType Interface Integer Palindrome Implements IDataType interface. String Palindrome Implements IDataType interface PalindromeFactory class Returns right type of object depending on data type.Example StringPalindrome… Read More »

Creating RESTful Web API

By | October 20, 2015

Introduction This post is about creating a RESTful web API using Microsoft technology stack. We will be using Visual Studio 2012 to build this REST service in C#. Entity Framework will be used for persistence in SQL Server database. REST Project Structure Open Visual Studio and click on File –> New –> Project (Shortcut : Ctrl… Read More »