Warning fix
This commit is contained in:
@@ -16,7 +16,7 @@ namespace CrossLamp.Controllers
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
private static BaseUtility _utility;
|
||||
private static BaseUtility? _utility = null;
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace CrossLamp.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public async Task<JsonResult> GetLamp()
|
||||
public async Task<JsonResult?> GetLamp()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -8,9 +8,9 @@ namespace CrossLampControl.WebApi.Models
|
||||
{
|
||||
public class Lamp
|
||||
{
|
||||
public string MainLamp { get; set; }
|
||||
public string SubLamp { get; set; }
|
||||
public string StartPause { get; set; }
|
||||
public string? MainLamp { get; set; }
|
||||
public string? SubLamp { get; set; }
|
||||
public string? StartPause { get; set; }
|
||||
|
||||
public Lamp()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user