add endpoint to remove employee roll calls by date
This commit is contained in:
@@ -132,7 +132,17 @@ public class RollCallCaseHistoryController : ClientBaseController
|
|||||||
var result = _rollCallApplication.ManualEdit(command);
|
var result = _rollCallApplication.ManualEdit(command);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
[HttpDelete("delete")]
|
||||||
|
public IActionResult OnPostRemoveEmployeeRollCallsInDate(RemoveEmployeeRollCallRequest request)
|
||||||
|
{
|
||||||
|
var result = _rollCallApplication.RemoveEmployeeRollCallsInDate(_workshopId, request.EmployeeId, request.Date);
|
||||||
|
|
||||||
|
return new JsonResult(new
|
||||||
|
{
|
||||||
|
success = result.IsSuccedded,
|
||||||
|
message = result.Message,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// [HttpGet("edit")]
|
// [HttpGet("edit")]
|
||||||
// public ActionResult<> GetEditDetails(string date,long employeeId)
|
// public ActionResult<> GetEditDetails(string date,long employeeId)
|
||||||
@@ -182,3 +192,9 @@ public class EditRollCallDetailsResult
|
|||||||
public string TotalRollCallsDuration { get; set; }
|
public string TotalRollCallsDuration { get; set; }
|
||||||
public List<EmployeeRollCallRecord> Records { get; set; }
|
public List<EmployeeRollCallRecord> Records { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class RemoveEmployeeRollCallRequest
|
||||||
|
{
|
||||||
|
public long EmployeeId { get; set; }
|
||||||
|
public string Date { get; set; }
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user