CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopResrAPI/Controllers/EmployeeController.cs

34 lines
677 B
C#
Raw Normal View History

using ElectronicsShopContracts.BindingModels;
using ElectronicsShopContracts.ViewModels;
using Microsoft.AspNetCore.Mvc;
namespace ElectronicsShopRestAPI.Controllers {
[Route("api/[controller]/[action]")]
[ApiController]
public class EmployeeController : Controller {
private readonly ILogger _logger;
public EmployeeController(ILogger<EmployeeController> logger) {
_logger = logger;
}
[HttpGet]
public EmployeeViewModel? Login(string login, string password) {
return null;
}
[HttpPost]
public void Register(EmployeeBindingModel model) {
return;
}
[HttpPost]
public void UpdateData(EmployeeBindingModel model) {
return;
}
}
}