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); } }
public IActionResult Save([FromBody] KpiViewModel model) { return(Ok(_kpi.Save(model))); }