Commit cd02d535 authored by hasan khaddour's avatar hasan khaddour

fix mapping issues

parent e12a00a8
...@@ -82,7 +82,7 @@ namespace PSManagement.Api.Controllers.Employees ...@@ -82,7 +82,7 @@ namespace PSManagement.Api.Controllers.Employees
} }
[HttpGet("TrackHistory")] [HttpGet("TrackHistory")]
public async Task<IActionResult> GetEmployeeTrackHistory([FromForm] GetEmployeeTrackHistoryRequest request) public async Task<IActionResult> GetEmployeeTrackHistory([FromQuery] GetEmployeeTrackHistoryRequest request)
{ {
var command = _mapper.Map<GetEmployeeTrackHistoryQuery>(request); var command = _mapper.Map<GetEmployeeTrackHistoryQuery>(request);
var result = await _sender.Send(command); var result = await _sender.Send(command);
......
...@@ -185,7 +185,7 @@ namespace PSManagement.Api.Controllers.Projects ...@@ -185,7 +185,7 @@ namespace PSManagement.Api.Controllers.Projects
[HttpPost("CompleteProject/{id}")] [HttpPost("CompleteProject/{id}")]
public async Task<IActionResult> PostCompleteProjectRequest(int id ) public async Task<IActionResult> PostCompleteProjectRequest(int id )
{ {
var query = new CompleteProgressProjectCommand(id); var query = new CompleteProjectCommand(id);
var result = await _sender.Send(query); var result = await _sender.Send(query);
......
...@@ -16,7 +16,7 @@ using System; ...@@ -16,7 +16,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using PSManagement.Contracts.Tracks.Response;
namespace PSManagement.Api.Controllers.Steps namespace PSManagement.Api.Controllers.Steps
{ {
[Route("api/[controller]")] [Route("api/[controller]")]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment