public IActionResult Put(int id, [FromBody] TblTrainingCousre uTrainingCousre)
        {
            uTrainingCousre.Modifyer   = uTrainingCousre.Modifyer ?? "Someone";
            uTrainingCousre.ModifyDate = DateTime.Now;

            return(new JsonResult(this.repository.UpdateAsync(uTrainingCousre, id).Result, this.DefaultJsonSettings));
        }
        public IActionResult Post([FromBody] TblTrainingCousre nTrainingCousre)
        {
            nTrainingCousre.Creator    = nTrainingCousre.Creator ?? "Someone";
            nTrainingCousre.CreateDate = DateTime.Now;

            return(new JsonResult(this.repository.AddAsync(nTrainingCousre).Result, this.DefaultJsonSettings));
        }