123456789101112131415161718192021222324252627 |
- using Microsoft.AspNetCore.Http;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using wispro.sp.entity;
- namespace wispro.sp.api.Controllers
- {
- [Route("api/[controller]/[action]")]
- [ApiController]
- public class CalMonthController : ControllerBase
- {
- spDbContext Context;
- public CalMonthController(spDbContext context)
- {
- Context = context;
- }
- public CalMonth GetHandlingMonth()
- {
- return Context.CalMonths.Where<CalMonth>(c => c.Status != 4).FirstOrDefault();
- }
- }
- }
|