Пример #1
0
 public IHttpActionResult Get(string id)
 {
     try
     {
         EmployeeViewModel emp = new EmployeeViewModel();
         emp.GetById(id);
         return Ok(emp);
     }
     catch (Exception ex)
     {
         return BadRequest("Retrive failed - " + ex.Message);
     }
 }