コード例 #1
0
 public void Save(string KpiName)
 {
     try
     {
         var response = _Kpi.Save(new Master.Bll.Models.KpiViewModel
         {
             KpiNameTh = KpiName
         });
         Console.WriteLine(response);
     }
     catch (Exception ex)
     {
         Assert.True(false, ex.Message);
     }
 }
コード例 #2
0
 public IActionResult Save([FromBody] KpiViewModel model)
 {
     return(Ok(_kpi.Save(model)));
 }