using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_Model.Models;

namespace WIDESEAWCS_Server.Controllers.System
{
    [Route("api/StorageMode")]
    [ApiController]
    public class StoragemodeController : ApiBaseController<Idt_StoragemodeService, dt_storagemode>
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public StoragemodeController(Idt_StoragemodeService service, IHttpContextAccessor httpContextAccessor) : base(service)
        {
            _httpContextAccessor = httpContextAccessor;
        }

        [HttpPost, Route("UpdateStoragemode"), AllowAnonymous]
        public WebResponseContent UpdateStoragemode(int storagemode)
        {
            return Service.UpdateStoragemode(storagemode);
        }
    }
}