public ActionResult GetByFilter(string filter) { try { var result = OperationBase.GetByFilter(filter); return(Ok(result.Adapt <IEnumerable <TDTO> >())); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e)); } }