Tuesday, April 26, 2016

Easy Admin Dashboard with MVC

Today I'm going to introduce you create responsive , mobile friendly admin dashboard with MVC project. There are multiple bootstrap admin dashboard templates and one of the most commonly used and strongest one is Admin LTE. This is totally open source project. This will provide you great UI with documentations. Click here to see documentations. This project is owned to Almsaeed Studstudio .  What i'm doing is removing...

Sunday, February 28, 2016

Mongo DB With C# API V2

Let's start and check the latest  MongoDb Driver for C# (Mongo V2). If you are not still configured your Mongo Server yet. see this Post If you need some guide on old MongoDb Driver V1. See this Post New Features In V2  Async Support  Method Naming convention with helpful names ( SelectOne, InsertOne etc)  Legacy API Support  Here is the Db Structure and Sample Data I'm going to Use   DB Structure : Create...

Tuesday, February 23, 2016

Dependancy Injection With Unity

In Last post I gave you introduction for dependency  Injection. Here we gonna Use it in real code First I create MVC project and Add following classes to it. public interface IUserService    {        string GetUserName(string name);    }   public class UserService : IUserService     {         public string GetUserName(string name)         {             return string.Format("Hello {0}", name);         }     }    Here...

Friday, January 22, 2016

Dependency Injection - Intro

This gonna be post series which I gonna continue .. Because this is bit complex and without theoretical part hard to understand. Fist thing first.. Lets move with theoretical background of it with this post  Assume this scenario.. - Entire Post sequence will use  this as example There is student registration system we need to develop solution for student registration   Here is our usual MVC code. public class Student    {        public int StudentId { get; set; }        public string StudentName { get; set; }        public string RegId { get; set; }        public int Age { get; set; } ...

Thursday, January 21, 2016

Web API From Code (Entity frameworkk code first model)

If you going to target mobile based applications to the small business you need to have API/web service on the hand. Today we are going to develop Web API within few minutes. Im using entity framework code first model approach here. (You can use same approach with Asp.NET web sites too)  Advantages of Code first Model All handle in the code. Full control with the code No need to worry about the database Here is the scenario today im...