public async Task <IActionResult> Create([Bind("EmployeeFacultyId,Code,Name,UniversityId,University,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] EmployeeFaculty employeeFaculty)
        {
            if (ModelState.IsValid)
            {
                _context.Add(employeeFaculty);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(employeeFaculty));
        }
        public async Task <IActionResult> Create([Bind("AssetBrandId,Code,Name,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] AssetBrand assetBrand)
        {
            if (ModelState.IsValid)
            {
                _context.Add(assetBrand);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(assetBrand));
        }
        public async Task <IActionResult> Create([Bind("LocationGroupId,Code,Barcode,Name,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] LocationGroup locationGroup)
        {
            if (ModelState.IsValid)
            {
                _context.Add(locationGroup);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(locationGroup));
        }
Beispiel #4
0
        public async Task <IActionResult> Create([Bind("AssetId,Code,Barcode,NameThai,NameEng,OldCode,Color,Size,Brand,Model,SerialNo,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] Asset asset)
        {
            if (ModelState.IsValid)
            {
                _context.Add(asset);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(asset));
        }
        public async Task <IActionResult> Create([Bind("AssetWarrantyId,InvoiceNumber,VoucherNumber,SupplierId,PolicyNumber,ContractNumber,Address,Telphone,WarrantyDuration,WarrantyStart,WarrantyEnd,Premium,Remark,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] AssetWarranty assetWarranty)
        {
            if (ModelState.IsValid)
            {
                _context.Add(assetWarranty);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(assetWarranty));
        }
        public async Task <IActionResult> Create([Bind("OwnershipId,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] Ownership ownership)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ownership);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(ownership));
        }
Beispiel #7
0
        public async Task <IActionResult> Create([Bind("AssetWarrantyCompanyId,Code,Name,Address,ContactNumber,ContactPerson,Email,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] AssetWarrantyCompany assetWarrantyCompany)
        {
            if (ModelState.IsValid)
            {
                _context.Add(assetWarrantyCompany);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(assetWarrantyCompany));
        }
        public async Task <IActionResult> Create([Bind("EmployeeId,Code,Name,Address,ContactNumber,ContactPerson,Email,CreateBy,CreateDate,UpdateBy,UpdateDate,IsActive,IsDelete")] Employee employee)
        {
            if (ModelState.IsValid)
            {
                _context.Add(employee);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(employee));
        }