public bool UpdateUserType(UserTypeEntity userType) { if (userType.UserTypeID > 0) { //Update return(userTypeDAL.UpdateUserType(userType)); } else { //Insert return(userTypeDAL.InsertUserType(userType)); } }