public ActionResult GetById(int id) { try { var result = OperationBase.GetById(id); return(Ok(result.Adapt <TDTO>())); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e)); } }