public IActionResult Post([FromBody] ModuleAction moduleAction)
 {
     try
     {
         var result = _moduleRepository.CreateModuleAction(moduleAction);
         if (result != null)
         {
             return(Ok(result));
         }
         return(new StatusCodeResult(StatusCodes.Status500InternalServerError));
     }
     catch (Exception ex)
     {
         _logger.LogError(string.Format("Error occured while creating a Module"), ex);
         return(new StatusCodeResult(StatusCodes.Status500InternalServerError));
     }
 }