public async Task <IActionResult> PutApplyForCustomer(long id, ApplyForCustomer applyForCustomer)
        {
            if (id != applyForCustomer.Id)
            {
                return(BadRequest());
            }
            applyForCustomer.LastUpdatedDateTime   = DateTime.Now;
            _context.Entry(applyForCustomer).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ApplyForCustomerExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public ActionResult <ApplyForCustomer> PostApplyForCustomer(ApplyForCustomer applyForCustomer)
        {
            applyForCustomer.CreatedDateTime     = DateTime.Now;
            applyForCustomer.LastUpdatedDateTime = DateTime.Now;
            _context.ApplyForCustomer.Add(applyForCustomer);
            _context.SaveChangesAsync();

            return(applyForCustomer);
        }