Exemplo n.º 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));
 }
Exemplo n.º 2
0
        public async Task <IActionResult> Post(MarksModel marksModel)   //create
        {
            if (ModelState.IsValid)
            {
                await _context.Insert(marksModel);

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

                return(RedirectToAction(nameof(Index)));
            }
            return(View(studentModel));
        }
Exemplo n.º 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));
 }
Exemplo n.º 6
0
 public int Insert(Designation entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_designationRepo.Insert(entity));
 }
Exemplo n.º 7
0
 public int Insert(CustomerQuery entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_customerRepo.Insert(entity));
 }
Exemplo n.º 8
0
 public int Insert(Product entity)
 {
     entity.CreatedBy   = Convert.ToInt32(HttpContext.Current.Session["UserId"]);
     entity.CreatedDate = DateTime.Now;
     return(_productRepo.Insert(entity));
 }
Exemplo n.º 9
0
 public int InsertProductImage(ProductImage entity, IDbTransaction transaction, SqlConnection con)
 {
     return(_productImageRepo.Insert(entity, transaction, con));
 }
Exemplo n.º 10
0
 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));
 }
Exemplo n.º 11
0
 public int Insert(Role entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_roleRepo.Insert(entity));
 }
Exemplo n.º 12
0
 public int Insert(AccountHead entity)
 {
     return(_accountHeadRepo.Insert(entity));
 }
Exemplo n.º 13
0
 public int Insert(Department entity)
 {
     entity.CreatedDate = DateTime.Now;
     return(_departmentRepo.Insert(entity));
 }