public bool CheckAvailableUserName(string name) { var categoryname = _categoryRepo.GetByName(name); return(categoryname == null); }