public async Task <IActionResult> Edit(int?id, [Bind("HouseTypeId,BranchId,HouseType,Order,OTAOrder1,OTAOrder2,IsReal,OTAPre,OTABase,OTASpot,StickerPrice,CooperationPrice,PeakPrice")] FncHouseType fncHouseType)
        {
            if (id != fncHouseType.HouseTypeId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(fncHouseType);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!FncHouseTypeExists(fncHouseType.HouseTypeId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index), new { id = fncHouseType.BranchId }));
            }
            return(PartialView("~/Areas/AppIdentity/Views/AppHouseType/CreateEdit.cshtml", fncHouseType));
        }
        public async Task <IActionResult> Create([Bind("HouseTypeId,BranchId,HouseType,Order,OTAOrder1,OTAOrder2,IsReal,OTAPre,OTABase,OTASpot,StickerPrice,CooperationPrice,PeakPrice")] FncHouseType fncHouseType)
        {
            if (ModelState.IsValid)
            {
                _context.Add(fncHouseType);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index), new { id = fncHouseType.BranchId }));
            }
            return(PartialView("~/Areas/AppIdentity/Views/AppHouseType/CreateEdit.cshtml", fncHouseType));
        }