public int InsertProductPrice(ProductPrice entity) { entity.CreatedBy = Convert.ToInt32(HttpContext.Current.Session["UserId"]); entity.UpdatedDate = DateTime.Now; entity.Status = true; return(_productPriceRepo.Insert(entity)); }
public async Task <IActionResult> Post(MarksModel marksModel) //create { if (ModelState.IsValid) { await _context.Insert(marksModel); return(Ok()); } return(BadRequest(marksModel)); }
public async Task <IActionResult> Create(T2 studentModel) { if (ModelState.IsValid) { await _context.Insert(studentModel); return(RedirectToAction(nameof(Index))); } return(View(studentModel)); }
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)); }
public int Insert(Designation entity) { entity.CreatedDate = DateTime.Now; return(_designationRepo.Insert(entity)); }
public int Insert(CustomerQuery entity) { entity.CreatedDate = DateTime.Now; return(_customerRepo.Insert(entity)); }
public int Insert(Product entity) { entity.CreatedBy = Convert.ToInt32(HttpContext.Current.Session["UserId"]); entity.CreatedDate = DateTime.Now; return(_productRepo.Insert(entity)); }
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)); }
public int Insert(Role entity) { entity.CreatedDate = DateTime.Now; return(_roleRepo.Insert(entity)); }
public int Insert(AccountHead entity) { return(_accountHeadRepo.Insert(entity)); }
public int Insert(Department entity) { entity.CreatedDate = DateTime.Now; return(_departmentRepo.Insert(entity)); }