public IDataResult <ModelDetailDto> GetModelDetail(int modelId) { var result = _modelDal.GetModelDetail(modelId); if (result != null) { return(new SuccessDataResult <ModelDetailDto>(result)); } return(new ErrorDataResult <ModelDetailDto>(result, ModelMessages.FailedModelById)); }