Technologies We Have Used :

  • MVC 5 Framework
  • Entity Framework
  • CORS – ASP.Net Web Api
  • Unity – Web API
  • SQL Server 2019

Unity MVC
What is Unity MVC and why we use for ?

  • Unity is primarily a dependency injection container and so the guide also contains an introduction
  • Please note that Unity is a product from Microsoft and it will help us to create a repository of dependency classes that will be pluggable in mode.
  • In other words, the main advantage of Unity is that if needed we can just plug it in with another application.

-> ASP.NET MVC 5 With LINQ Quires (Download from Below Link)

Download MVC 5 with LINQ Complete from the Beginner Tutorials

-> ADD SQL SERVER DATABASE PROJECT IN VISUAL STUDIO WITH COMPLETE CONFIGURATION AND INTEGRATION
(Download from Below Link)

Download Integration of SQL Server With Visual Studio

-> Complete guideness for Installation of Visual Studio
(Download from Below Link)

How to install Visual Studio and where it to download

-> How To use Repositories and Cloning Projects in Visual studio and how to use
Microsoft Azure Dev Ops Cloud integrate with Visual Studio

(Download from Below Link)

Download Complete Document Training

-> Logger Configuration in MVC 5
Add SeriLog Logger in Your Project

(Download from Below Link)

Download Logger Configuration in MVC 5

sample click event for text box.

Razor syntax: 
@Html.ActionLink("Add", "Add", new { id = item.ID });

Using Button:
input type="button" title="Add" value="D" onclick="location.href='@Url.Action("Add", "Employee", new { id = item.ID })'" />

Using Image:
<a href="@Url.Action("Add", "Employee", new { id = item.ID })" title="Add">  
    <img src="../../Content/Images/AddEmp.png" />  
</a>  

Disable layout in ASP.NET MVC?
OR
how to remove layout page from view in mvc ?

Write below code in your cshtml class under Head Tag.
@{
Layout = null;
}

Comment and Un Comment Code in Visual studio
How to Comment and Un Comment Code in Visual studio?

For Un Comment select line of code and Press Ctrl+K, Ctrl+U
For Comment select line of code and Press Ctrl+K, Ctrl+C

Constructor shortcut Key in visual studio

press Ctrl+.

How to Generate Random OTP in ASP.NET ?
This code snippet provides the generation of OTP and provided length and characters.

public static string getRandomPassword(int length) {
string[] saAllowedCharacters = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};

string OTP = String.Empty;
string TempChars = String.Empty;
Random rand = new Random();
for (int i = 0; i < length; i++)
{
int p = rand.Next(0, saAllowedCharacters.Length);
TempChars = saAllowedCharacters[rand.Next(0, saAllowedCharacters.Length)];
OTP += TempChars;
}
return OTP;
}
----------------------------------------------------------
string randOTP = getRandomPassword(11);
Console.WriteLine("Your Random Password is : " + randOTP);

How to Generate Random Password in ASP.NET ?
This code snippet provides the generation of Random Password and provided length and characters.

public static string getRandomPassword(int length) {
string[] saAllowedCharacters = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0",
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "R", "U", "V", "W", "X", "Y", "Z",
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" };

string OTP = String.Empty;
string TempChars = String.Empty;
Random rand = new Random();
for (int i = 0; i < length; i++)
{
int p = rand.Next(0, saAllowedCharacters.Length);
TempChars = saAllowedCharacters[rand.Next(0, saAllowedCharacters.Length)];
OTP += TempChars;
}
return OTP;
}
----------------------------------------------------------
string randPass = getRandomPassword(15);
Console.WriteLine("Your Random Password is : " + randPass);

Generate Random Password Using Enumerable in ASP.NET

public static string getRandomPassword(){
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
var random = new Random();
var result = new string(Enumerable.Repeat(chars, 8).Select(s => s[random.Next(s.Length)]) .ToArray());
  return result; }

Generate Random Password Using String Builder in ASP.NET
generate Random password with Alphabet only and numbers only and also generate both.

public static string RandomString(int size, bool lowerCase)
{
StringBuilder builder = new StringBuilder();
Random random = new Random();
char ch;
for (int i = 0; i < size; i++)
{
ch = Convert.ToChar(Convert.ToInt32(Math.Floor(26 * random.NextDouble() + 65)));
builder.Append(ch);
}
if (lowerCase)
return builder.ToString().ToLower();
return builder.ToString();
}

public static string RandomPassword(int lowercaseSize, int uppercaseSize)
{
Random random = new Random();
StringBuilder builder = new StringBuilder();
builder.Append(RandomString(lowercaseSize, true));
builder.Append(random.Next(1000, 9999));
builder.Append(RandomString(uppercaseSize, false));
return builder.ToString();
}

Generate Random Password Using Security Library in MVC 5 ASP.Net

public static string GetRandomPassword()
{
string password = Membership.GeneratePassword(12, 1);
return password;
}

Multi dimensional string array in c#
How to use Multi dimensional array in c#

string[,] Data = new string[3, 3] {{"a","b","c"},{"A","B","C"},{"1","2","3"} };

How to stop C# console applications from closing automatically ?

Write in the last of your code
Console.ReadLine();

ReadLine() waits for the submission or waits until you press enter.

How do I redirect to another webpage in Java Script?

return redirect through java script

// similar behavior as an HTTP redirect 
window.locate.replace("http://learninginz.com");

// similar behavior as clicking on a link 
window.locate.href("http://learninginz.com");

window.location.replace(...) is better than using window.location.href, because replace() does not keep the originating page in the session history

How to adjusts TABs in Theme using CSS?
change clac in flex to adjust TAbs in any Theme
flex: 00 calc(20% - 0.25rem);

Datetime in C# add days and Time
Days = DbFunctions.AddDays(date, 21),
StartTime = DbFunctions.AddMinutes(StartTime, 30),
EndTime = DbFunctions.AddMinutes(EndTime, -30)