public async Task <IActionResult> AddModule(long id, long moduleId) { var addModCmd = new AddModuleCmd(id, moduleId, HttpContext.UserId().Value); var added = await companyRepo.AddModule(addModCmd); if (added) { return(NoContent()); } else { return(BadRequest()); } }