Ejemplo n.º 1
0
        // 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));
        }
Ejemplo n.º 2
0
 public ActionResult <TestViewModel> Post([FromBody] TestViewModel value)
 {
     return(_policyService.AddObject(value));
 }