forked from MDCPS/DamageAssessment_Backend
Update DbContext Changes
This commit is contained in:
@ -55,11 +55,11 @@ namespace DamageAssesment.Api.Employees.Controllers
|
||||
/// </summary>
|
||||
/// <param name="Employee">The updated employee object.</param>
|
||||
[HttpPut("Employees")]
|
||||
public async Task<IActionResult> UpdateEmployee(Db.Employee Employee)
|
||||
public async Task<IActionResult> UpdateEmployee(string Id, Models.Employee Employee)
|
||||
{
|
||||
if (Employee != null)
|
||||
{
|
||||
var result = await this.EmployeeProvider.UpdateEmployeeAsync(Employee);
|
||||
var result = await this.EmployeeProvider.UpdateEmployeeAsync(Id,Employee);
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
return Ok(result.Employee);
|
||||
@ -77,7 +77,7 @@ namespace DamageAssesment.Api.Employees.Controllers
|
||||
/// </summary>
|
||||
/// <param name="Employee">The employee information for creating a new employee.</param>
|
||||
[HttpPost("Employees")]
|
||||
public async Task<IActionResult> CreateEmployee(Db.Employee Employee)
|
||||
public async Task<IActionResult> CreateEmployee(Models.Employee Employee)
|
||||
{
|
||||
if (Employee != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user