public ActionResult Create(List <Words> collection) { try { _wordsService.InsertCollections("Words", collection); return(Created(HttpContext.Request.GetDisplayUrl(), collection)); } catch (Exception ex) { _logger.LogError(ex.Message); return(Problem()); } }