Skip to content

Instantly share code, notes, and snippets.

View brijinfo's full-sized avatar
💭
Enjoying in busy schedule at my work place

BRIJESH TRIPATHI brijinfo

💭
Enjoying in busy schedule at my work place
  • omninet technologies pvt ltd
  • Lucknow
View GitHub Profile
@brijinfo
brijinfo / Controller
Created March 17, 2020 07:44
Registration Process
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Registration_module.Models;
using System.IO;
using System.Web.Helpers;
using Dapper;
using System.Text;
public bool AddOrder(Order model)
{
try
{
XDocument OrderDetails = new XDocument(new XDeclaration("1.0", "UTF - 8", "yes"),
new XElement("CustomerOrder",
from OrderDet in model.Products
select new XElement("OrderDetails",
new XElement("ItemCode", OrderDet.ItemCode),
new XElement("Description", OrderDet.Description),
@brijinfo
brijinfo / AdminController
Created July 16, 2019 07:06
Bulk insertion in mvc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ERP_MULTI.Models;
namespace ERP_MULTI.Controllers
{
public class AdminController : Controller
@brijinfo
brijinfo / controller part
Created June 1, 2019 10:27
sending email in asp.net mvc
public ActionResult sendmail()
{
return View();
}
[HttpPost]
public ActionResult sendmail(Practice_mvc.Models.MailModel _objModelMail)
{
if (ModelState.IsValid)
{
MailMessage mail = new MailMessage();
@brijinfo
brijinfo / HomeController
Created June 1, 2019 07:14
Cascade Dropdown in asp mvc
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Practice_mvc.Controllers
{
public class HomeController : Controller
{
@brijinfo
brijinfo / prime number.c
Last active June 1, 2019 07:22
finding prime number
#include<stdio.h>
int main(){
int n,i,m=0,flag=0;
printf("Enter the number to check prime:");
scanf("%d",&n);
m=n/2;
for(i=2;i<=m;i++)
{
if(n%i==0)
{