Ejemplo n.º 1
0
        public void SaveEmployee(EmployeeDto objEmployeeDto)
        {
            //employeeDto = new EmployeeDto(){
            //    //EmpID = 1,
            //    FirstName = "Mirza",
            //    LastName = "Galib",
            //    Dob = new DateTime(1756, 1, 1),
            //    Gender = 'M',
            //    AddedByUser = "******",
            //    AddedOn = new DateTime(2018, 08, 03),
            //    UpdatedByUser = "",
            //    UpdatedOn = new DateTime(2018, 08, 03),
            //    DepId = 111,
            //    ProjectId = 111,
            //    ProjectRoleId = 111
            //};

            // employeeDto = objEmployeeDto;
            using (var context = new DmsAppdbContext())
            {
                context.EmmloyeeDtos.Add(objEmployeeDto);
                //context.EmmloyeeDtos.Add(employeeDto);
                context.SaveChanges();
            }
        }
Ejemplo n.º 2
0
 public void SaveRecord()
 {
     db.SaveChanges();
 }