public ActionResult Details([FromQuery] string empCode,
                             [FromQuery]
                             [Range(1, int.MaxValue, ErrorMessage = "OfficeId must be greater than 0.")] int officeid)
 {
     try
     {
         var employeeDetails = employeeApiService.GetEmployeeDetails(empCode, officeid);
         return(new JsonResult(employeeDetails));
     }
     catch (Exception ex)
     {
         this.logger.LogError(ex, $"Error while getting details for empCode : {empCode}, officeid: {officeid}.");
         this.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
         return(new JsonResult(new { Error = new { Message = "An unhandled error occured during request processing." } }));
     }
 }