public ActionResult Create(CooperationPhraseViewModel model)
        {
            try
            {
                // TODO: Add insert logic here
                if (!ModelState.IsValid)
                {
                    return(View(model));
                }
                var CooperationPhrase = _mapper.Map <CooperationPhrase>(model);
                var isSuccess         = _repo.Create(CooperationPhrase);
                if (!isSuccess)
                {
                    ModelState.AddModelError("", "Something Went Wrong!");
                    return(View(model));
                }

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                ModelState.AddModelError("", "Something Went Wrong!");
                return(View(model));
            }
        }
        public ActionResult Delete(int id, CooperationPhraseViewModel model)
        {
            try
            {
                // TODO: Add delete logic here
                var CooperationPhrase = _repo.FindById(id);
                if (CooperationPhrase == null)
                {
                    return(NotFound());
                }

                var isSuccess = _repo.Delete(CooperationPhrase);
                if (!isSuccess)
                {
                    return(View(model));
                }


                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View(model));
            }
        }