Beispiel #1
0
 public int InsertProductPrice(ProductPrice entity)
 {
     entity.CreatedBy   = Convert.ToInt32(HttpContext.Current.Session["UserId"]);
     entity.UpdatedDate = DateTime.Now;
     entity.Status      = true;
     return(_productPriceRepo.Insert(entity));
 }
Beispiel #2
0
        public async Task <IActionResult> Post(MarksModel marksModel)   //create
        {
            if (ModelState.IsValid)
            {
                await _context.Insert(marksModel);

                return(Ok());
            }
            return(BadRequest(marksModel));
        }
Beispiel #3
0
        public async Task <IActionResult> Create(T2 studentModel)
        {
            if (ModelState.IsValid)
            {
                await _context.Insert(studentModel);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(studentModel));
        }
Beispiel #4
0
        public int InsertUserRole(UserRoles userRoles)
        {
            var parameters = new List <SqlParameter>();

            parameters.Add(baseRepo.CreateParameter("@RoleDescription", 20, userRoles.RoleDescription, DbType.String));
            parameters.Add(baseRepo.CreateParameter("@RoleNumber", userRoles.RoleNumber, DbType.Int32));
            parameters.Add(baseRepo.CreateParameter("@CreatedDate", userRoles.CreatedDate, DbType.Date));
            parameters.Add(baseRepo.CreateParameter("@ModifiedDate", userRoles.ModifiedDate, DbType.Date));
            parameters.Add(baseRepo.CreateParameter("@RoleIsActive", userRoles.RoleIsActive, DbType.Boolean));
            baseRepo.Insert("[dbo].[InsertUserRoles]", CommandType.StoredProcedure, parameters.ToArray(), out int lastid);
            return(lastid);
        }
 public int Insert(OrganizationInfo entity)
 {
     return(_organizationInfoRepo.Insert(entity));
 }
Beispiel #6
0
 public int Insert(Designation entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_designationRepo.Insert(entity));
 }
Beispiel #7
0
 public int Insert(CustomerQuery entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_customerRepo.Insert(entity));
 }
Beispiel #8
0
 public int Insert(Product entity)
 {
     entity.CreatedBy   = Convert.ToInt32(HttpContext.Current.Session["UserId"]);
     entity.CreatedDate = DateTime.Now;
     return(_productRepo.Insert(entity));
 }
Beispiel #9
0
 public int InsertProductImage(ProductImage entity, IDbTransaction transaction, SqlConnection con)
 {
     return(_productImageRepo.Insert(entity, transaction, con));
 }
 public int Insert(FiscalYear entity, IDbTransaction transaction, SqlConnection con)
 {
     entity.CreatedBy   = Convert.ToInt32(HttpContext.Current.Session["UserId"]);
     entity.CreatedDate = DateTime.Now;
     return(_fiscalYearRepo.Insert(entity, transaction, con));
 }
Beispiel #11
0
 public int Insert(Role entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_roleRepo.Insert(entity));
 }
Beispiel #12
0
 public int Insert(AccountHead entity)
 {
     return(_accountHeadRepo.Insert(entity));
 }
Beispiel #13
0
 public int Insert(Department entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_departmentRepo.Insert(entity));
 }