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));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 5
0
        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));
        }
Ejemplo n.º 6
0
        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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 8
0
        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));
        }