Controllers/PuorderController.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using DingTalk.Api;
using DingTalk.Api.Request;
using DingTalk.Api.Response;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Options;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Suite.API;
using WebApplication1.App_Code;
using WebApplication1.Common;
using WebApplication1.Models;

namespace WebApplication1.Controllers
{
    public class PuorderController : Controller
    {
        private  readonly DataDbcontext _context;
        private  readonly IOptions<Dingconfig> _appConfiguration;
        private readonly DDHelper dHelper = new DDHelper();

        public PuorderController(DataDbcontext context, IOptions<Dingconfig> appConfigurtaionServices)
        {
            _context = context;
            _appConfiguration = appConfigurtaionServices;
        }
        // GET: Puorder
        public IActionResult Index()
        {
            return View(_context.puorders.ToList());
        }

        // GET: Puorder/Details/5
        //public ActionResult Details(int id)
        //{
        //    return View();
        //}

        // GET: Puorder/Create
        public IActionResult AddPuorder()
        {
            return View();
        }

        // POST: Puorder/Create
        [HttpPost]
        [ValidateAntiForgeryToken]
        public IActionResult Create(IFormCollection collection)
        {
            try
            {
后面还有 134 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。