// POST api/<controller> //public Employee Post([FromBody]Employee value) //{ // return _employeeRepository.AddEmployee(value); //} // PUT api/<controller>/5 public TestViewModel Put([FromBody] TestViewModel value) { return(_employeeRepository.AddObject(value)); }
public ActionResult <TestViewModel> Post([FromBody] TestViewModel value) { return(_policyService.AddObject(value)); }