private IResult CheckModelNameExist(string normalizedName) { var result = _modelDal.Any(c => c.NormalizedName == normalizedName); if (result) { return(new ErrorResult(Messages.NameAlreadyRegistered)); } return(new SuccessResult()); }